Error: Returned error: sender account not recognized
paif opened this issue · 3 comments
paif commented
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 commented
probably, when you run ganache-cli the --unlock address was not passed properly
masehdh commented
This was the problem for me as well, fixed using --unlock and having the environment variables set correctly
Samboy76 commented
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?