Skip to content

Commit

Permalink
release december 23 fix: dont override timeout (#616)
Browse files Browse the repository at this point in the history
Co-authored-by: Todd Kao <[email protected]>
  • Loading branch information
ericHgorski and toddkao authored Dec 23, 2024
1 parent 0a70f47 commit 8a1ae46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
5 changes: 5 additions & 0 deletions .changeset/popular-donkeys-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@skip-go/client': patch
---

no longer override timeout in signCosmosMessageAmino
19 changes: 0 additions & 19 deletions packages/client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -884,25 +884,6 @@ export class SkipClient {
getEncodeObjectFromCosmosMessage(cosmosMsg)
);

const aminoMsgTransferIndex = messages.findIndex(
(x) => x.typeUrl === '/ibc.applications.transfer.v1.MsgTransfer'
);
if (aminoMsgTransferIndex !== -1) {
const endpoint = await this.getRpcEndpointForChain(chainID);
const client = await StargateClient.connect(endpoint, {
accountParser,
});

const currentHeight = await client.getHeight();

messages[aminoMsgTransferIndex]!.value.timeoutHeight = {
revisionHeight: currentHeight + 100,
revisionNumber: currentHeight + 100,
};

messages[aminoMsgTransferIndex]!.value.timeoutTimestamp = 0;
}

const signMode = SignMode.SIGN_MODE_LEGACY_AMINO_JSON;
const msgs = messages.map((msg) => this.aminoTypes.toAmino(msg));

Expand Down

0 comments on commit 8a1ae46

Please sign in to comment.