New answers tagged


As answered by Alexey, the error happens because of undefined defaultAccount property. The work around for it in javascript is adding the below statement web3.eth.defaultAccount = ethereum._state.accounts[0] Here we have used ethereum._state.accounts[0] instead of web3.eth.accounts[0] since it is deprecated to be used by metamask as documented in the ...

Top 50 recent answers are included