Skip to content

Commit

Permalink
Merge pull request #41 from 1inch/audit_fix/n_03_check_length
Browse files Browse the repository at this point in the history
[SC-1327] N-03 check values.length
  • Loading branch information
SevenSwen authored Dec 9, 2024
2 parents 65752d3 + c0717fd commit f9d7e8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/BalanceManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ abstract contract BalanceManager is IERC1271, IBalanceManager {
unchecked {
uint256 length = targets.length;
if (length != arguments.length) revert LengthMismatch();
if (length != values.length) revert LengthMismatch();
for (uint256 i = 0; i < length; ++i) {
// solhint-disable-next-line avoid-low-level-calls
(bool success,) = targets[i].call{value: values[i]}(arguments[i]);
Expand Down

0 comments on commit f9d7e8b

Please sign in to comment.