Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sender account not recognized error when using "WrestlingInstance.registerAsAnOpponent({from: account1}) " #1

Open
Jcwilli585 opened this issue Sep 13, 2019 · 1 comment

Comments

@Jcwilli585
Copy link

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

@Kokolushkin
Copy link

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

Faced the same problem, you did not find a solution?

Repository owner deleted a comment from duskagain Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants