You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "brownie/_cli/run.py", line 51, in main
return_value, frame = run(
File "brownie/project/scripts.py", line 110, in run
return_value = f_locals[method_name](*args, **kwargs)
File "./scripts/scratch.py", line 51, in main
tx = finder.withdrawEthWithRevertMessage(
File "brownie/network/contract.py", line 1861, in __call__
return self.transact(*args)
File "brownie/network/contract.py", line 1734, in transact
return tx["from"].transfer(
File "brownie/network/account.py", line 682, in transfer
receipt._raise_if_reverted(exc)
File "brownie/network/transaction.py", line 441, in _raise_if_reverted
marker = "//" if contract._build["language"] == "Solidity" else "#"
KeyError: 'language'
How can it be fixed?
Replace all instances of contract._build["language"] with contract._build.get("language") in transaction.py.
I've patched my local copy to get around this issue.
The text was updated successfully, but these errors were encountered:
u39kun
added a commit
to u39kun/brownie
that referenced
this issue
Jun 5, 2022
Environment information
brownie
Version: 1.19.0ganache-cli
Version: 7.2.0solc
Version: 0.8.14What was wrong?
Very similar to #1139
How can it be fixed?
Replace all instances of
contract._build["language"]
withcontract._build.get("language")
intransaction.py
.I've patched my local copy to get around this issue.
The text was updated successfully, but these errors were encountered: