I'm having issues with Brownie not appending the deployed contracts to the ContractContainer
as when attempting to index the ContractContainer
for my SimpleStorage
contract I get the following error:
IndexError: list index out of range
I have a deploy.py
script which deploys the contract which I can confirm executes fine and deploys the contract(which is viewable in the explorer):
from brownie import accounts, SimpleStorage
def main():
account = accounts.load("my-account")
SimpleStorage.deploy({"from": account})
And another interact.py
script to access and interact with a given deployed SimpleStorage
contract deployed with the above script.
from brownie import SimpleStorage
def main():
simple_storage_zero = SimpleStorage[0] # indexing error
Could someone please assist me? if not with the exact issue I'm having at least with another way of interacting with a given SimpleStorage
contract by for example instantiating it using the contract's address.