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
After merge of #2122, typegen removes empty types from function input arguments, which corresponds to the runtime behavior of the abi-coder, which ignores empty inputs. This led to unexpected function signatures. Based on the abi below,
abi MyContract{fn types_value_then_empty(x: u8,y:()) -> ();fntypes_value_then_empty_then_value(x:u8,y:(),z:u8) -> ();}
To implement this, we need to change both the abi-coder to accept null (or undefined, which I prefer) for empty types as well as the typegen to match this new runtime behavior.
The text was updated successfully, but these errors were encountered:
After merge of #2122, typegen removes empty types from function input arguments, which corresponds to the runtime behavior of the abi-coder, which ignores empty inputs. This led to unexpected function signatures. Based on the abi below,
these are the generated functions (in usage):
This is odd and unexpected and should be like this:
To implement this, we need to change both the abi-coder to accept
null
(orundefined
, which I prefer) for empty types as well as the typegen to match this new runtime behavior.The text was updated successfully, but these errors were encountered: