deploy scroll
This commit is contained in:
6
contracts/external/Multicall.sol
vendored
6
contracts/external/Multicall.sol
vendored
@@ -12,13 +12,13 @@ contract Multicall {
|
||||
address target;
|
||||
bytes callData;
|
||||
}
|
||||
function aggregate(Call[] memory calls) public returns (uint256 blockNumber, bytes[] memory returnData, bool[] memory dataValid) {
|
||||
|
||||
function aggregate(Call[] memory calls) public returns (uint256 blockNumber, bytes[] memory returnData) {
|
||||
blockNumber = block.number;
|
||||
returnData = new bytes[](calls.length);
|
||||
dataValid = new bool[](calls.length);
|
||||
for(uint256 i = 0; i < calls.length; i++) {
|
||||
(bool success, bytes memory ret) = calls[i].target.call(calls[i].callData);
|
||||
dataValid[i] = success;
|
||||
require(success);
|
||||
returnData[i] = ret;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user