Skip to content

Commit

Permalink
adding _size suffix to supported * syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
elicbarbieri committed Apr 29, 2024
1 parent 6153822 commit a7f8fad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions starknet_abi/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ def parse_abi_parameters(
if json_type_str.endswith("*"):
len_param = output_parameters.pop(-1)
assert len_param.name.endswith(
"_len"
), f"Type {json_type_str} not preceeded by a length parameter"
("_len", "_size")
), f"Type {json_type_str} not preceded by a length parameter"

output_parameters.append(
AbiParameter(
Expand All @@ -349,7 +349,7 @@ def parse_abi_types(
len_type = output_types.pop(-1)
assert (
len_type == StarknetCoreType.Felt
), f"Type {json_type_str} not preceeded by a Felt Length Param"
), f"Type {json_type_str} not preceded by a Felt Length Param"

output_types.append(_parse_type(json_type_str, custom_types))

Expand Down

0 comments on commit a7f8fad

Please sign in to comment.