-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduction of omitDefault in Cosmjs/Amino 0.31.2 breaks signing with undefined memo field #1555
Comments
But |
@baoskee you are so right, and you fixed my problem! @webmaster128 some examples on the libs where the problem happens:
Example of the MSG:
IF MEMO IS NOT SET, it won't work as @baoskee explained. |
I think the type export interface MsgTransferEncodeObject extends EncodeObject {
readonly typeUrl: "/ibc.applications.transfer.v1.MsgTransfer";
readonly value: Partial<MsgTransfer>; // HERE
} is buggy. The |
In
@cosmjs/stargate
src/modules/ibc/aminomessages.ts
IBC transfer amino messages in 0.31.1 did not include memo field.
IBC transfer amino messages in 0.32.2 does include memo field.
This breaks messages with no memo field in value as omitDefault(undefined) throws an error.
The text was updated successfully, but these errors were encountered: