We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contract.balance
brownie
ganache-cli
solc
Traceback (most recent call last): File "/home/bryant/.pyenv/versions/3.8.4/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/home/bryant/.pyenv/versions/3.8.4/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/home/bryant/.pyenv/versions/3.8.4/envs/brownie/lib/python3.8/site-packages/brownie/network/contract.py", line 195, in _add_from_tx self.at(tx.contract_address, tx.sender, tx) File "/home/bryant/.pyenv/versions/3.8.4/envs/brownie/lib/python3.8/site-packages/brownie/network/contract.py", line 178, in at contract = ProjectContract(self._project, build, address, owner, tx) File "/home/bryant/.pyenv/versions/3.8.4/envs/brownie/lib/python3.8/site-packages/brownie/network/contract.py", line 772, in __init__ _DeployedContractBase.__init__(self, address, owner, tx) File "/home/bryant/.pyenv/versions/3.8.4/envs/brownie/lib/python3.8/site-packages/brownie/network/contract.py", line 334, in __init__ self._check_and_set(abi["name"], fn) File "/home/bryant/.pyenv/versions/3.8.4/envs/brownie/lib/python3.8/site-packages/brownie/network/contract.py", line 345, in _check_and_set raise AttributeError(f"Namespace collision: '{self._name}.{name}'") AttributeError: Namespace collision: 'yVault.balance'
This reaches deep into the API, so a proper fix has to come with #399
As a temporary hack, you could allow overwriting .balance when there's an ABI method of the same name. You are still able to query balances using RPC
.balance
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment information
brownie
Version: 1.9.10ganache-cli
Version: n.f.csolc
Version: 0.6.2What was wrong?
How can it be fixed?
This reaches deep into the API, so a proper fix has to come with #399
As a temporary hack, you could allow overwriting
.balance
when there's an ABI method of the same name. You are still able to query balances using RPCThe text was updated successfully, but these errors were encountered: