Skip to content

Commit

Permalink
fix: gas optimizations #68 (CodeArena)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximebrugel committed Feb 18, 2022
1 parent f2fb697 commit 4c752b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/NestedFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ contract NestedFactory is INestedFactory, ReentrancyGuard, OwnableProxyDelegatio

IERC20 _inputToken;
uint256 _inputTokenAmount;
for (uint256 i = 0; i < _batchedOrders.orders.length; i++) {
for (uint256 i = 0; i < batchLength; i++) {
(_inputToken, _inputTokenAmount) = _transferInputTokens(
_nftId,
IERC20(_batchedOrders.orders[i].token),
Expand Down

0 comments on commit 4c752b1

Please sign in to comment.