This is how I used to interact with deployed contracts when using truffle console
let contract = await Whitelist.deployed()
contract.getWhitelist()
However, I am now using a brownie console
and this was the only way I was able to do the same.
NOTE: I freshly re-deployed the contract with brownie run deploy_contracts.py
>>> contract = Whitelist.at("0x7CB3e6C814ddC99469B7e24271c90b9Aef610648")
>>> contract.getWhitelist()
Here it's obviously time-consuming to always have to search and paste an address inside a function.
Is there maybe an equivalent of deployed()
command in the Brownie console that I am missing?