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”);
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.