Closed FabianBoni closed 2 years ago
You need to add the INFURA project ID in the .env file and then run the command on the mainnet-fork: brownie run scripts/arbitrage.py --network=mainnet-fork
That should not be the problem, because I already did.
"list index out of range" means that the accounts list is not loaded properly for the mainnet-fork network
So you mean the problem has to be on the INFURA site?
Running 'scripts\arbitrage.py::main'... File "C:\Users\Fabian\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\brownie_cli\run.py", line 49, in main return_value, frame = run( File "C:\Users\Fabian\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\brownie\project\scripts.py", line 103, in run return_value = f_locals[method_name](*args, **kwargs) File ".\scripts\arbitrage.py", line 15, in main account = get_account() File ".\scripts\helper_scripts.py", line 16, in get_account return accounts[0] File "C:\Users\Fabian\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\brownie\network\account.py", line 113, in getitem return self._accounts[key] IndexError: list index out of range