Skip to content

Commit

Permalink
check values.length
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenSwen committed Dec 6, 2024
1 parent 9398f54 commit c0717fd
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 c0717fd

Please sign in to comment.