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

Error: Returned error: sender account not recognized #12

Open
paif opened this issue Nov 14, 2021 · 3 comments
Open

Error: Returned error: sender account not recognized #12

paif opened this issue Nov 14, 2021 · 3 comments

Comments

@paif
Copy link

paif commented Nov 14, 2021

Hi! When running script:
test-erc20.js
I get an error:
Error: Returned error: sender account not recognized on line:
await token.transfer(accounts[0], bal, { from: WHALE });
Can you please tell me what could be the reason?

@CodeDem
Copy link

CodeDem commented Nov 27, 2021

probably, when you run ganache-cli the --unlock address was not passed properly

@masehdh
Copy link

masehdh commented Dec 14, 2021

This was the problem for me as well, fixed using --unlock and having the environment variables set correctly

@Samboy76
Copy link

Samboy76 commented Sep 6, 2022

I am having the same problem despite starting from Windows DOS prompt
ganache-cli --secure -u 0 --fork https://mainnet.infura.io/v3/<>
Incidentally, the environment variables have been set correctly.
Any thoughts pls?

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

4 participants