Hello,
My goal is to use Metamask as an alert system, to show that something relating to the contract has changed. Similar to how Moralis login requests a signature (except I have no need to verify that the request gets signed)
I have set up a cloud function with following code. I do not get an error, but I do not get a metamask alert eitherâŚ
const web3 = Moralis.web3ByChain(â0x89â)
const myContract = new web3.eth.Contract(ABI, contractAddress)
const owners = await myContract.methods.getOwners().call();
web3.eth.sign(âMessage for ownersâ, â//This is a hardcoded address for the momentâ);
return owners;
This code runs and returns owners, but web3.eth.sign() is either failing or not being called or not showing up on the wallet end.
THANKS!!!