Skip to content

Commit

Permalink
relax an assertion in packing external call args (#2526)
Browse files Browse the repository at this point in the history
the number of args passed could be somewhere in between
base args + 0 kwargs and
base args + all kwargs
  • Loading branch information
charles-cooper authored Nov 5, 2021
1 parent 985fbf1 commit 1f5a33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/old_codegen/external_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _external_call_helper(
gas = "gas"

# sanity check
assert len(contract_sig.args) == len(args_lll)
assert len(contract_sig.base_args) <= len(args_lll) <= len(contract_sig.args)

if context.is_constant() and contract_sig.mutability not in ("view", "pure"):
# TODO is this already done in type checker?
Expand Down

0 comments on commit 1f5a33b

Please sign in to comment.