Deployment to ganache
brownie automatically handles ganache initiation through ganache-cli
#import contract into script:
#from brownie import .. , .., <name of contract>
from brownie import accounts, config, SimpleStorage
#put all the deplyment logic in one fucntion:
def deploy_simple_storage():
#local ganache accounts
account = accounts[0]
#select which account to deploy from
simple_storage = SimpleStorage.deploy({"from": account})
print(simple_storage)
Interacting with your Contracts
Note:
Last updated