Skip to content

Commit

Permalink
address decoding big number (#16571)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhen1997 authored Feb 27, 2025
1 parent 5d62459 commit ffb133b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/capabilities/ccip/ccipsolana/commitcodec.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func decodeLEToBigInt(data []byte) cciptypes.BigInt {

// Use big.Int.SetBytes to construct the big.Int
bi := new(big.Int).SetBytes(data)
if bi.Int64() == 0 {
if bi.Cmp(big.NewInt(0)) == 0 {
return cciptypes.NewBigInt(big.NewInt(0))
}

Expand Down

0 comments on commit ffb133b

Please sign in to comment.