From 8a4be27e98c875fa1754c0b75eaa38b1fcfa3566 Mon Sep 17 00:00:00 2001 From: chrismaree Date: Tue, 20 Dec 2022 19:11:06 +0200 Subject: [PATCH] fix[OA-audit-N08]: Fix address multicaller payability Signed-off-by: chrismaree --- packages/core/contracts/common/implementation/MultiCaller.sol | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/contracts/common/implementation/MultiCaller.sol b/packages/core/contracts/common/implementation/MultiCaller.sol index d618d14313..1d2d7b9753 100644 --- a/packages/core/contracts/common/implementation/MultiCaller.sol +++ b/packages/core/contracts/common/implementation/MultiCaller.sol @@ -6,8 +6,7 @@ pragma solidity ^0.8.0; /// @title MultiCaller /// @notice Enables calling multiple methods in a single call to the contract contract MultiCaller { - function multicall(bytes[] calldata data) external payable returns (bytes[] memory results) { - require(msg.value == 0, "Only multicall with 0 value"); + function multicall(bytes[] calldata data) external returns (bytes[] memory results) { results = new bytes[](data.length); for (uint256 i = 0; i < data.length; i++) { (bool success, bytes memory result) = address(this).delegatecall(data[i]);