I am using angular with walletconnectprovider and web3 I have this issue with calling any methods from the contract where web3 is not returning any response.
This is how I initialized my provider
this.provider = new WalletConnectProvider({
// infuraId: "27e484dcd9e3efcfd25a83a78777cdf1",
rpc: {
56: "https://bsc-dataseed.binance.org/"
},
chainId: 56
});
Initialized web3 and contract
const web3 = await new Web3(this.provider as any);
const contract = new web3.eth.Contract(JSON.parse(this.smartContract.abi),this.smartContract.contractAddress,{
from: this.provider.wc.accounts[0]
});
And everytime i call this method all codes from below it is not executing. I also check my network tab it seems there is no running Http request at all.
await contract.methods.balanceOf(this.toAddress).call()
// codes here is not called