Skip to content

Commit

Permalink
update padding
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhen1997 committed Jan 25, 2025
1 parent 2b79eac commit 626a423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/capabilities/ccip/ccipsolana/executecodec.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func parseExtraArgsMap(input map[string]any) (ccip_router.SVMExtraArgs, error) {
func bytesToUint32LE(b []byte) uint32 {
if len(b) < 4 {
var padded [4]byte
copy(padded[4-len(b):], b) // Pad from the left for little-endian
copy(padded[:len(b)], b) // Pad from the right for little-endian
return binary.LittleEndian.Uint32(padded[:])
}

Expand Down

0 comments on commit 626a423

Please sign in to comment.