Open a console with brownie console --network mainnet-fork
and run:
a = Contract.from_explorer("0x1D415aa39D647834786EB9B5a333A50e9935b796")
Output is
Fetching source of 0x1D415aa39D647834786EB9B5a333A50e9935b796 from api.etherscan.io...
File "<console>", line 1, in <module>
File "brownie/network/contract.py", line 909, in from_explorer
_DeployedContractBase.__init__(self, address, owner)
File "brownie/network/contract.py", line 455, in __init__
self._check_and_set(abi["name"], fn)
File "brownie/network/contract.py", line 474, in _check_and_set
raise AttributeError(f"Namespace collision: '{self._name}.{name}'")
AttributeError: Namespace collision: 'AddressConfig._owner'
Environment information
brownie
Version: masterganache-cli
Version: 6.12.1solc
Version: 0.6.12Repro steps
Open a console with
brownie console --network mainnet-fork
and run:Output is