Skip to content

Commit

Permalink
unchecked ++
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongeric committed Sep 14, 2023
1 parent 68f1fcb commit a509343
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/sample-executors/BaseExecutor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ library Commands {
uint256 constant EXECUTE_BATCH = 0x01;
uint256 constant PERMIT = 0x02;
uint256 constant PERMIT_BATCH = 0x03;
// 0x04 - 0x0f are reserved for future use
}

struct PermitData {
Expand Down Expand Up @@ -97,8 +98,11 @@ abstract contract BaseExecutor is IReactorCallback, Owned {
}

function _permitBatch(PermitData[] memory permits) internal {
for (uint256 i = 0; i < permits.length; i++) {
for (uint256 i = 0; i < permits.length;) {
_permit(permits[i]);
unchecked {
i++;
}
}
}

Expand Down

0 comments on commit a509343

Please sign in to comment.