Skip to content

Commit

Permalink
Parse sequence number as uint instead of int in cosmos SendIBCTransfer (
Browse files Browse the repository at this point in the history
#990)

(cherry picked from commit c7961f2)
  • Loading branch information
pharr117 authored and mergify[bot] committed Feb 26, 2024
1 parent 00e1c95 commit 9345131
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chain/cosmos/cosmos_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9345131

Please sign in to comment.