Skip to content

Commit

Permalink
Oz L-09 (#382)
Browse files Browse the repository at this point in the history
* OZ L-09

* Remove .vscode/settings.json from the repository
  • Loading branch information
dianakocsis authored Aug 30, 2024
1 parent 1180951 commit a888522
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/base/Dispatcher.sol
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@ abstract contract Dispatcher is Payments, V2SwapRouter, V3SwapRouter, V4SwapRout
if (command == Commands.EXECUTE_SUB_PLAN) {
bytes calldata _commands = inputs.toBytes(0);
bytes[] calldata _inputs = inputs.toBytesArray(1);
(success, output) =
(address(this)).call(abi.encodeWithSelector(Dispatcher.execute.selector, _commands, _inputs));
(success, output) = (address(this)).call(abi.encodeCall(Dispatcher.execute, (_commands, _inputs)));
} else {
// placeholder area for commands 0x23-0x3f
revert InvalidCommandType(command);
Expand Down

0 comments on commit a888522

Please sign in to comment.