I want to chain contract deployment, where the second contract gets as a parameter the address of the first using Brownie
:
from brownie import ContractA, ContractB , accounts
def main():
acct = accounts[0]
ContractA.deploy({'from': acct})
ContractB.deploy(ContractA.address, {'from': acct})
With web3
and Truffle
, the deployed contract instance can be imported and we get its address with .address
. However, brownie CountractContainer
are function objects and I can't understand how to get the deployed address.
ganache
blockchain?