fix uni
This commit is contained in:
10
contracts/external/Multicall.sol
vendored
10
contracts/external/Multicall.sol
vendored
@@ -1,7 +1,3 @@
|
||||
/**
|
||||
*Submitted for verification at Etherscan.io on 2019-06-10
|
||||
*/
|
||||
|
||||
pragma solidity 0.6.9;
|
||||
pragma experimental ABIEncoderV2;
|
||||
|
||||
@@ -10,17 +6,19 @@ pragma experimental ABIEncoderV2;
|
||||
/// @author Joshua Levine <joshua@makerdao.com>
|
||||
/// @author Nick Johnson <arachnid@notdot.net>
|
||||
|
||||
// WithValid
|
||||
contract Multicall {
|
||||
struct Call {
|
||||
address target;
|
||||
bytes callData;
|
||||
}
|
||||
function aggregate(Call[] memory calls) public returns (uint256 blockNumber, bytes[] memory returnData) {
|
||||
function aggregate(Call[] memory calls) public returns (uint256 blockNumber, bytes[] memory returnData, bool[] memory dataValid) {
|
||||
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);
|
||||
require(success);
|
||||
dataValid[i] = success;
|
||||
returnData[i] = ret;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user