Skip to content

Commit

Permalink
Pedantry
Browse files Browse the repository at this point in the history
  • Loading branch information
duncancmt committed Jan 30, 2025
1 parent 41f2f00 commit 07d3527
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SettlerBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ library CalldataDecoder {
data.offset,
// We allow the indirection/offset to `calls[i]` to be negative
calldataload(
add(shl(5, i), data.offset) // can't overflow; we assume `i` is in-bounds
add(shl(0x05, i), data.offset) // can't overflow; we assume `i` is in-bounds
)
)
// now we load `args.length` and set `args.offset` to the start of data
args.length := calldataload(args.offset)
args.offset := add(args.offset, 0x20)
args.offset := add(0x20, args.offset)

// slice off the first 4 bytes of `args` as the selector
selector := shr(0xe0, calldataload(args.offset))
args.length := sub(args.length, 0x04)
args.offset := add(args.offset, 0x04)
args.offset := add(0x04, args.offset)
}
}
}
Expand Down

0 comments on commit 07d3527

Please sign in to comment.