Skip to content

Commit

Permalink
Merge pull request #620 from eth-brownie/fix-spurious-call-args
Browse files Browse the repository at this point in the history
delete `required_confs` prior to making a call
  • Loading branch information
iamdefinitelyahuman committed Jun 7, 2020
2 parents 84dc43a + ff7cc9b commit 689569f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions brownie/network/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,9 @@ def call(self, *args: Tuple, block_identifier: Union[int, str, bytes] = None) ->
args, tx = _get_tx(self._owner, args)
if tx["from"]:
tx["from"] = str(tx["from"])
del tx["required_confs"]
tx.update({"to": self._address, "data": self.encode_input(*args)})

try:
data = web3.eth.call({k: v for k, v in tx.items() if v}, block_identifier)
except ValueError as e:
Expand Down

0 comments on commit 689569f

Please sign in to comment.