Lesson 6: No Value error is coming for mainnet-fork #1151
-
when I execute, brownie run scripts/deploy.py --network mainnet-fork, it gets executed successfully. No ValueError is coming as in the video. PS D:\demos\brownie_fund_me> brownie run scripts/deploy.py --network mainnet-fork BrownieFundMeProject is the active project. Launching 'ganache-cli.cmd --accounts 10 --hardfork istanbul --fork https://mainnet.infura.io/v3/69690316fe1d475c93b12647xxxxxxx --gasLimit 12000000 --mnemonic brownie --port 8545 --chainId 1'... Running 'scripts\deploy.py::main'... Contract deployed to 0x350A16e2d2f382e0C5c885Af6cED8F8611a34Bea |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Dude, are you complaining, that you are NOT getting an error? That would be a new one :-) |
Beta Was this translation helpful? Give feedback.
-
The array out of range error at this timestamp stems from the fact, that the brownie version Patrick uses in this video, does not automatically create accounts for mainnet-fork. |
Beta Was this translation helpful? Give feedback.
The array out of range error at this timestamp stems from the fact, that the brownie version Patrick uses in this video, does not automatically create accounts for mainnet-fork.
Your ganache-cli output shows, however, that 10 accounts are created
Launching 'ganache-cli.cmd --accounts 10 --hardfork istanbul --fork https://mainnet.infura.io/v3/69690316fe1d475c93b12647xxxxxxx --gasLimit 12000000 --mnemonic brownie --port 8545 --chainId 1'...
Another thing I noticed, is that you are using mainnet-fork but have configured mainnet-fork-dev in your config yaml. This could cause some errors ahead.