I'm quite stuck with this issue. It seems like it must work, but it doesn't :D
Have a contract on rinkeby
network which is working perfectly through remix(load by address) and truffle console. However method calls through web3
client refuse to work.
init:
import Web3 from 'web3';
// @ts-ignore
const web3 = new Web3(window.web3.currentProvider);
***got address & abi***
export default new web3.eth.Contract(abi, address);
usage example:
console.log(registryContract.options.address);
console.log(registryContract.methods);
const owner = await registryContract.methods.owner().call();
In console.log()
i can see the actual contract address and methods.
Metamask is active and web3.eth.defaultAccount
shows me my correct account at rinkeby
network => provider must be working.
calling the owner
from remix working. with web3 i'm getting an empty array as response. Same for other methods calls.
What is possible going wrong? "web3": "^1.0.0-beta.37"