trufflesuite / ganache

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
2.62k stars 678 forks source link

Invalid value in wallet.unlockedAccounts #3932

Closed rick-rheo closed 1 year ago

rick-rheo commented 1 year ago

ganache --fork https://mainnet.infura.io/v3/<my api key> --unlock 00000000219ab540356cbb839cbe05303d7705fa

returns error

Invalid value in wallet.unlockedAccounts: 00000000219ab540356cbb839cbe05303d7705fa

ganache-cli 6.x worked

Is --unlock not supported any more?

davidmurdoch commented 1 year ago

I'm away from my desk and can't test right now, but I think it's just missing the 0xprefix.

tenthirtyone commented 1 year ago

I'm able to confirm the 0x prefix:


» ganache --fork https://mainnet.infura.io/v3/\KEY --unlock 00000000219ab540356cbb839cbe05303d7705fa                                                                                                                                      
ganache v7.5.0 (@ganache/cli: 0.6.0, @ganache/core: 0.6.0)
Invalid value in wallet.unlockedAccounts: 00000000219ab540356cbb839cbe05303d7705fa

» ganache --fork https://mainnet.infura.io/v3/\KEY --unlock 0x00000000219ab540356cbb839cbe05303d7705fa                                                                                                                                1 ↵ hayek@rothbard
ganache v7.5.0 (@ganache/cli: 0.6.0, @ganache/core: 0.6.0)
Starting RPC server
...
RPC Listening on 127.0.0.1:8545