Skip to content

Commit

Permalink
feat: add missing early return for 1 command
Browse files Browse the repository at this point in the history
  • Loading branch information
ChefMist committed Sep 12, 2024
1 parent dfa33a6 commit a0dbda7
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .forge-snapshots/UniversalRouterBytecodeSize.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24137
24108
2 changes: 1 addition & 1 deletion .forge-snapshots/UniversalRouterTest#test_sweep_token.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
55452
55428
Original file line number Diff line number Diff line change
@@ -1 +1 @@
559360
559336
Original file line number Diff line number Diff line change
@@ -1 +1 @@
594213
594165
Original file line number Diff line number Diff line change
@@ -1 +1 @@
570015
569991
Original file line number Diff line number Diff line change
@@ -1 +1 @@
583566
583518
1 change: 1 addition & 0 deletions src/base/Dispatcher.sol
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ abstract contract Dispatcher is
}
bytes calldata data = inputs.toBytes(1);
PERMIT2.permit(msgSender(), permitBatch, data);
return (success, output);
} else if (command == Commands.SWEEP) {
// equivalent: abi.decode(inputs, (address, address, uint256))
address token;
Expand Down

0 comments on commit a0dbda7

Please sign in to comment.