Skip to content

Commit

Permalink
fix: fix argument packing condition when using abi_call
Browse files Browse the repository at this point in the history
  • Loading branch information
achidlow committed Jun 25, 2024
1 parent 5b931a0 commit 070d224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/puya/awst_build/eb/arc4/abi_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def ref_to_arg(ref_field: TxnField, arg: InstanceBuilder) -> Expression:
}
for arr_field, arr_field_values in array_fields.items():
if arr_field_values:
if arr_field == TxnFields.app_args and len(arr_field_values) > 15:
if arr_field == TxnFields.app_args and len(arr_field_values) > 16:
args_to_pack = arr_field_values[15:]
arr_field_values[15:] = [
_arc4_tuple_from_items(args_to_pack, _combine_locs(args_to_pack))
Expand Down

0 comments on commit 070d224

Please sign in to comment.