Skip to content

Commit 53d0260

Browse files
committed
Make timeout_height optional for MsgTransfer and MsgNftTransfer amino types
1 parent 0ebeba3 commit 53d0260

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

package-lock.json

+9-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@initia/initia.js",
3-
"version": "0.2.23",
3+
"version": "0.2.24",
44
"description": "The JavaScript SDK for Initia",
55
"license": "Apache-2.0",
66
"author": "Initia Foundation",

src/core/ibc/applications/nft-transfer/msgs/MsgNftTransfer.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class MsgNftTransfer extends JSONSerializable<
119119
token_ids,
120120
sender,
121121
receiver,
122-
timeout_height: timeout_height?.toAmino() ?? {},
122+
timeout_height: timeout_height?.toAmino(),
123123
timeout_timestamp,
124124
memo,
125125
},
@@ -253,7 +253,7 @@ export namespace MsgNftTransfer {
253253
token_ids: string[]
254254
sender: AccAddress
255255
receiver: string
256-
timeout_height: Height.Amino
256+
timeout_height?: Height.Amino
257257
timeout_timestamp?: string
258258
memo?: string
259259
}

src/core/ibc/applications/transfer/msgs/MsgTransfer.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class MsgTransfer extends JSONSerializable<
112112
token: token?.toAmino(),
113113
sender,
114114
receiver,
115-
timeout_height: timeout_height?.toAmino() ?? {},
115+
timeout_height: timeout_height?.toAmino(),
116116
timeout_timestamp,
117117
memo,
118118
},
@@ -238,11 +238,12 @@ export namespace MsgTransfer {
238238
token?: Coin.Amino
239239
sender: AccAddress
240240
receiver: string
241-
timeout_height: Height.Amino
241+
timeout_height?: Height.Amino
242242
timeout_timestamp?: string
243243
memo?: string
244244
}
245245
}
246+
246247
export interface Data {
247248
'@type': '/ibc.applications.transfer.v1.MsgTransfer'
248249
source_port: string
@@ -254,5 +255,6 @@ export namespace MsgTransfer {
254255
timeout_timestamp: string
255256
memo?: string
256257
}
258+
257259
export type Proto = MsgTransfer_pb
258260
}

0 commit comments

Comments
 (0)