diff --git a/lib/src/transaction/msg/ibc/applications/MsgTransfer.spec.ts b/lib/src/transaction/msg/ibc/applications/MsgTransfer.spec.ts index 582a8595..eb2f08e4 100644 --- a/lib/src/transaction/msg/ibc/applications/MsgTransfer.spec.ts +++ b/lib/src/transaction/msg/ibc/applications/MsgTransfer.spec.ts @@ -29,7 +29,7 @@ describe('Testing MsgTransfer', function () { sender: 'tcro15sfupd26sp6qf37ll5q6xuf330k7df9tnvrqht', receiver: 'cosmos1vw4ucaeagtduv5ep4sa95e3aqzqpsk5meda08c', timeoutHeight, - timeoutTimestamp: Long.fromString('1620640362229420996'), + timeoutTimestampInNanoSeconds: Long.fromString('1620640362229420996'), }; const testRunner = fuzzy(fuzzy.ObjArg(anyValidOptions)); @@ -50,7 +50,7 @@ describe('Testing MsgTransfer', function () { sender: 'tcro15sfupd26sp6qf37ll5q6xuf330k7df9tnvrqht', receiver: 'cosmos1vw4ucaeagtduv5ep4sa95e3aqzqpsk5meda08c', timeoutHeight, - timeoutTimestamp: Long.fromString('1620640362229420996'), + timeoutTimestampInNanoSeconds: Long.fromString('1620640362229420996'), }); const rawMsg: Msg = { @@ -81,7 +81,7 @@ describe('Testing MsgTransfer', function () { sender: 'tcro15sfupd26sp6qf37ll5q6xuf330k7df9tnvrqht', receiver: 'cosmos1vw4ucaeagtduv5ep4sa95e3aqzqpsk5meda08c', timeoutHeight, - timeoutTimestamp: Long.fromString('1620640362229420996'), + timeoutTimestampInNanoSeconds: Long.fromString('1620640362229420996'), }); const anySigner = { @@ -110,7 +110,7 @@ describe('Testing MsgTransfer', function () { sender: 'cosmos1vw4ucaeagtduv5ep4sa95e3aqzqpsk5meda08c', receiver: 'cosmos1vw4ucaeagtduv5ep4sa95e3aqzqpsk5meda08c', timeoutHeight, - timeoutTimestamp: Long.fromString('1620640362229420996'), + timeoutTimestampInNanoSeconds: Long.fromString('1620640362229420996'), }; expect(() => new cro.ibc.MsgTransfer(params1)).to.throw('Provided `sender` does not match network selected'); @@ -124,7 +124,7 @@ describe('Testing MsgTransfer', function () { sender: 'tcro15sfupd26sp6qf37ll5q6xuf330k7df9tnvrqht', receiver: '0x7e00664398A54AE12648CAe2785c36d00dd51672', timeoutHeight, - timeoutTimestamp: Long.fromString('1620640362229420996'), + timeoutTimestampInNanoSeconds: Long.fromString('1620640362229420996'), }; expect(() => new cro.ibc.MsgTransfer(params1)).to.throw( @@ -140,7 +140,7 @@ describe('Testing MsgTransfer', function () { sender: 'tcro15sfupd26sp6qf37ll5q6xuf330k7df9tnvrqht', receiver: 'cosmos1vw4ucaeagtduv5ep4sa95e3aqzqpsk5meda08c', timeoutHeight, - timeoutTimestamp: Long.fromString('1620640362229420996'), + timeoutTimestampInNanoSeconds: Long.fromString('1620640362229420996'), }); expect(isAminoMsgTransfer(MsgTransfer.toRawAminoMsg()).valueOf()).to.be.true; expect(MsgTransfer.toRawAminoMsg()).to.deep.eq({ @@ -168,7 +168,7 @@ describe('Testing MsgTransfer', function () { sourceChannel: 'channel-33', sender: 'tcro15sfupd26sp6qf37ll5q6xuf330k7df9tnvrqht', receiver: 'cosmos1vw4ucaeagtduv5ep4sa95e3aqzqpsk5meda08c', - timeoutTimestamp: Long.fromString('1620640362229420996'), + timeoutTimestampInNanoSeconds: Long.fromString('1620640362229420996'), }); expect(msgTransferIBC_UNdefined.toRawAminoMsg()).to.deep.eq({ diff --git a/lib/src/transaction/msg/ibc/applications/MsgTransfer.ts b/lib/src/transaction/msg/ibc/applications/MsgTransfer.ts index 15c1a7c2..ed24acd7 100644 --- a/lib/src/transaction/msg/ibc/applications/MsgTransfer.ts +++ b/lib/src/transaction/msg/ibc/applications/MsgTransfer.ts @@ -47,7 +47,7 @@ export const msgTransferIBC = function (config: InitConfigurations) { this.sender = options.sender; this.receiver = options.receiver; this.timeoutHeight = options.timeoutHeight; - this.timeoutTimestampInNanoSeconds = options.timeoutTimestamp; + this.timeoutTimestampInNanoSeconds = options.timeoutTimestampInNanoSeconds; this.validateAddresses(); } @@ -67,7 +67,7 @@ export const msgTransferIBC = function (config: InitConfigurations) { receiver: this.receiver, timeoutHeight: this.timeoutHeight, timeoutTimestamp: this.timeoutTimestampInNanoSeconds, - } as MsgTransferOptions, + }, }; } @@ -126,7 +126,7 @@ export const msgTransferIBC = function (config: InitConfigurations) { token: cro.v2.CoinV2.fromCustomAmountDenom(parsedMsg.token.amount, parsedMsg.token.denom), sender: parsedMsg.sender, receiver: parsedMsg.receiver, - timeoutTimestamp: Long.fromString(parsedMsg.timeout_timestamp), + timeoutTimestampInNanoSeconds: Long.fromString(parsedMsg.timeout_timestamp), timeoutHeight, }); } @@ -158,7 +158,7 @@ export type MsgTransferOptions = { sender: string; receiver: string; timeoutHeight?: IHeight | null; - timeoutTimestamp: Long; + timeoutTimestampInNanoSeconds: Long; }; export type IHeight = { diff --git a/lib/src/transaction/msg/ow.types.ts b/lib/src/transaction/msg/ow.types.ts index 07338d42..0ab856b1 100644 --- a/lib/src/transaction/msg/ow.types.ts +++ b/lib/src/transaction/msg/ow.types.ts @@ -231,7 +231,7 @@ export const owMsgTransferIBCOptions = owStrictObject().exactShape({ sender: ow.string, receiver: ow.string, timeoutHeight: owIBCHeightOptional(), - timeoutTimestamp: owLong(), + timeoutTimestampInNanoSeconds: owLong(), }); export const owMsgUpgradeClientOptions = owStrictObject().exactShape({