Nonce is a uint32, not a uint256

This commit is contained in:
derpy-duck 2023-02-14 18:27:42 +00:00
parent d434221240
commit 5badd06f21
1 changed files with 2 additions and 2 deletions

View File

@ -124,8 +124,8 @@ export function parseRedeliveryByTxHashInstruction(
const sourceTxHash = bytes.slice(idx, idx + 32)
idx += 32
const sourceNonce = BigNumber.from(bytes.slice(idx, idx + 32))
idx += 32
const sourceNonce = BigNumber.from(bytes.slice(idx, idx + 4))
idx += 4
const targetChain = bytes.readUInt16BE(idx)
idx += 2