Skip to content

Commit

Permalink
Merge branch 'master' into auto-wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
SecretSaturn authored Jan 5, 2025
2 parents b4c0e31 + 361df0b commit 71f342b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/services/ibc.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,12 @@ async function performIbcWithdrawal(
}
})

// Construct the IBC timeout height object
const timeout_height = {
revision_number: '100',
revision_height: '1000000000000000000'
}

const transferMsg = new MsgTransfer({
sender: props.secretNetworkClient?.address,
receiver: receiver,
Expand All @@ -718,6 +724,7 @@ async function performIbcWithdrawal(
denom: withdrawalChain.denom
},
memo: forwardingMemo,
timeout_height: timeout_height,
timeout_timestamp: String(Math.floor(Date.now() / 1000) + 10 * 60) // 10 minute timeout
})
tx = await props.secretNetworkClient.tx.broadcast(
Expand Down

0 comments on commit 71f342b

Please sign in to comment.