Skip to content

Commit

Permalink
remove unnecessary length check
Browse files Browse the repository at this point in the history
  • Loading branch information
hensha256 committed Dec 2, 2024
1 parent 1ba502d commit d7195fa
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_collect_native.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
148593
148571
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_collect_sameRange.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
157242
157220
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_collect_withClose.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
157242
157220
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_collect_withTakePair.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
156478
156456
Original file line number Diff line number Diff line change
@@ -1 +1 @@
114183
114165
Original file line number Diff line number Diff line change
@@ -1 +1 @@
122577
122555
Original file line number Diff line number Diff line change
@@ -1 +1 @@
121813
121791
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_decrease_burnEmpty.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
138195
138177
Original file line number Diff line number Diff line change
@@ -1 +1 @@
131276
131258
Original file line number Diff line number Diff line change
@@ -1 +1 @@
135240
135218
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_decrease_take_take.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
123191
123169
Original file line number Diff line number Diff line change
@@ -1 +1 @@
162441
162419
Original file line number Diff line number Diff line change
@@ -1 +1 @@
161305
161283
Original file line number Diff line number Diff line change
@@ -1 +1 @@
145318
145296
Original file line number Diff line number Diff line change
@@ -1 +1 @@
138032
138010
Original file line number Diff line number Diff line change
@@ -1 +1 @@
180216
180194
Original file line number Diff line number Diff line change
@@ -1 +1 @@
150804
150782
2 changes: 1 addition & 1 deletion .forge-snapshots/positionManager bytecode size.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19068
19060
4 changes: 0 additions & 4 deletions src/libraries/CalldataDecoder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ library CalldataDecoder {
returns (uint256 tokenId, uint256 liquidity, uint128 amount0, uint128 amount1, bytes calldata hookData)
{
assembly ("memory-safe") {
if lt(params.length, 0x80) {
mstore(0, SLICE_ERROR_SELECTOR)
revert(0x1c, 4)
}
tokenId := calldataload(params.offset)
liquidity := calldataload(add(params.offset, 0x20))
amount0 := calldataload(add(params.offset, 0x40))
Expand Down

0 comments on commit d7195fa

Please sign in to comment.