From 9345131834eced2345171d01d2b105a7aa23f8e7 Mon Sep 17 00:00:00 2001 From: Peter <24580777+pharr117@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:53:42 -0500 Subject: [PATCH] Parse sequence number as uint instead of int in cosmos SendIBCTransfer (#990) (cherry picked from commit c7961f2c4c7ae9ade9aa3da41bf2b514e1fd8df5) --- chain/cosmos/cosmos_chain.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chain/cosmos/cosmos_chain.go b/chain/cosmos/cosmos_chain.go index e8ccfac85..df3f209d8 100644 --- a/chain/cosmos/cosmos_chain.go +++ b/chain/cosmos/cosmos_chain.go @@ -379,11 +379,11 @@ func (c *CosmosChain) SendIBCTransfer( tx.Packet.TimeoutHeight = timeoutHeight tx.Packet.Data = []byte(data) - seqNum, err := strconv.Atoi(seq) + seqNum, err := strconv.ParseUint(seq, 10, 64) if err != nil { return tx, fmt.Errorf("invalid packet sequence from events %s: %w", seq, err) } - tx.Packet.Sequence = uint64(seqNum) + tx.Packet.Sequence = seqNum timeoutNano, err := strconv.ParseUint(timeoutTs, 10, 64) if err != nil {