Skip to content

Commit

Permalink
fix[OA-audit-N08]: Fix address multicaller payability (#4327)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismaree authored Dec 22, 2022
1 parent 5e36c85 commit 1d416c9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 1d416c9

Please sign in to comment.