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
  • Loading branch information
pharr117 authored Feb 26, 2024
1 parent 438ecab commit c7961f2
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 @@ -361,11 +361,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 c7961f2

Please sign in to comment.