Hey there, I am using moralis (1.11.0) with wallet connect (1.7.8). I have my app deployed to play store using moralis paid server. The issue coming in the app is this:
This is the code
async testContract() {
await Moralis.enableWeb3({
chainId:5,
mobileLinks: ['metamask'],
provider: 'walletconnect',
})
.then(async () => {
await Moralis.authenticate({
chainId:5,
provider: 'walletconnect',
mobileLinks: ['metamask'],
signingMessage: 'Mint via Digital Dope',
});
})
.then(async () => {
try {
const options = {
chain: '0x5',
contractAddress: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
functionName: 'mintToken',
abi: this.contractABI,
params: {
tokenURI:
'http://gateway.moralisipfs.com/ipfs/ID',
},
onSuccess: (tx: any) => console.log(tx),
onError: (error: any) => console.log(error),
};
await Moralis.executeFunction(options).then((res) => {
console.log('MINTED DATA', res);
});
} catch (error) {
console.log('this error is from LIST NFT', error);
}
});
}
The error is that the app is not connecting to metamask app (v7.3.1) via enable function
WebSocket connection to βwss://s.bridge.walletconnect.org/?env=browser&host=localhost&protocol=wc&version=1β failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED
Kindly help as this issue is disturbing my application