You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got stuck at account0 = web3.eth.accounts[0]. The result would be "undefined". Also the result is undefined for Wrestling.deployed().then(inst => { WrestlingInstance = inst }).
The command "WrestlingInstance.wrestler1.call()" does return the first address.
I was able to set account0 using the lines:
var account0;
I got stuck at account0 = web3.eth.accounts[0]. The result would be "undefined". Also the result is undefined for Wrestling.deployed().then(inst => { WrestlingInstance = inst }).
The command "WrestlingInstance.wrestler1.call()" does return the first address.
I was able to set account0 using the lines:
var account0;
I'm following the ethereum walkthrough at: https://hackernoon.com/ethereum-development-walkthrough-part-2-truffle-ganache-geth-and-mist-8d6320e12269
I got stuck at account0 = web3.eth.accounts[0]. The result would be "undefined". Also the result is undefined for Wrestling.deployed().then(inst => { WrestlingInstance = inst }).
The command "WrestlingInstance.wrestler1.call()" does return the first address.
I was able to set account0 using the lines:
var account0;
web3.eth.getAccounts().then(e => {account0 = e[0]})
Now when I enter "WrestlingInstance.registerAsAnOpponent({from: account1}) " I get the error:
sender account not recognized
The text was updated successfully, but these errors were encountered: