Skip to content

Commit

Permalink
Make timeout_height optional for MsgTransfer and MsgNftTransfer amino…
Browse files Browse the repository at this point in the history
… types
  • Loading branch information
joon9823 committed Jan 6, 2025
1 parent 0ebeba3 commit 53d0260
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
17 changes: 9 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@initia/initia.js",
"version": "0.2.23",
"version": "0.2.24",
"description": "The JavaScript SDK for Initia",
"license": "Apache-2.0",
"author": "Initia Foundation",
Expand Down
4 changes: 2 additions & 2 deletions src/core/ibc/applications/nft-transfer/msgs/MsgNftTransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class MsgNftTransfer extends JSONSerializable<
token_ids,
sender,
receiver,
timeout_height: timeout_height?.toAmino() ?? {},
timeout_height: timeout_height?.toAmino(),
timeout_timestamp,
memo,
},
Expand Down Expand Up @@ -253,7 +253,7 @@ export namespace MsgNftTransfer {
token_ids: string[]
sender: AccAddress
receiver: string
timeout_height: Height.Amino
timeout_height?: Height.Amino
timeout_timestamp?: string
memo?: string
}
Expand Down
6 changes: 4 additions & 2 deletions src/core/ibc/applications/transfer/msgs/MsgTransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class MsgTransfer extends JSONSerializable<
token: token?.toAmino(),
sender,
receiver,
timeout_height: timeout_height?.toAmino() ?? {},
timeout_height: timeout_height?.toAmino(),
timeout_timestamp,
memo,
},
Expand Down Expand Up @@ -238,11 +238,12 @@ export namespace MsgTransfer {
token?: Coin.Amino
sender: AccAddress
receiver: string
timeout_height: Height.Amino
timeout_height?: Height.Amino
timeout_timestamp?: string
memo?: string
}
}

export interface Data {
'@type': '/ibc.applications.transfer.v1.MsgTransfer'
source_port: string
Expand All @@ -254,5 +255,6 @@ export namespace MsgTransfer {
timeout_timestamp: string
memo?: string
}

export type Proto = MsgTransfer_pb
}

0 comments on commit 53d0260

Please sign in to comment.