Hi , when I deploy the simple contract firstly, but then run create_collectible.py ,it shows error below, I have read the same questions concerned but I don't know how to solve it yet, Please help me. Thank you.
gilsun91@superman518:~/nft-mix-main/scripts/simple_collectible$ brownie run scripts/simple_collectible/deploy_simple.py
Brownie v1.17.2 - Python development framework for Ethereum
/home/gilsun91/.local/lib/python3.8/site-packages/brownie/project/main.py:718: BrownieEnvironmentWarning: Loaded project has a root folder of '/home/gilsun91/nft-mix-main' which is different from the current working directory
warnings.warn(
NftMixMainProject is the active project.
Launching 'ganache-cli --port 8545 --gasLimit 12000000 --accounts 10 --hardfork istanbul --mnemonic brownie'...
Running 'deploy_simple.py::main'...
development
Transaction sent: 0xd124a0b97088a3e97a319b5372d60867870a6962eee51837207d59864402dbdb
Gas price: 0.0 gwei Gas limit: 12000000 Nonce: 0
SimpleCollectible.constructor confirmed Block: 1 Gas used: 1824705 (15.21%)
SimpleCollectible deployed at: 0x9E8AC6f34b94BDD97B6af2b8323D0ae58C4cEe22
Terminating local RPC client...
gilsun91@superman518:~/nft-mix-main/scripts/simple_collectible$ brownie run scripts/simple_collectible/create_collectible.py
Brownie v1.17.2 - Python development framework for Ethereum
/home/gilsun91/.local/lib/python3.8/site-packages/brownie/project/main.py:718: BrownieEnvironmentWarning: Loaded project has a root folder of '/home/gilsun91/nft-mix-main' which is different from the current working directory
warnings.warn(
NftMixMainProject is the active project.
Launching 'ganache-cli --port 8545 --gasLimit 12000000 --accounts 10 --hardfork istanbul --mnemonic brownie'...
Running 'create_collectible.py::main'...
development
-1
File "brownie/_cli/run.py", line 50, in main
return_value, frame = run(
File "brownie/project/scripts.py", line 103, in run
return_value = f_locals[method_name](*args, **kwargs)
File "./create_collectible.py", line 12, in main
simple_collectible = SimpleCollectible[len(SimpleCollectible) - 1]
File "brownie/network/contract.py", line 173, in __getitem__
return self._contracts[i]
IndexError: list index out of range
Terminating local RPC client...
Hi , when I deploy the simple contract firstly, but then run create_collectible.py ,it shows error below, I have read the same questions concerned but I don't know how to solve it yet, Please help me. Thank you.