Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Multicall module #2608

Merged
merged 18 commits into from
Apr 7, 2021
Prev Previous commit
Next Next commit
go back to pre-existing naming
  • Loading branch information
martriay committed Mar 26, 2021
commit a7397c52f6715814f509e29338df67e7bee0da59
6 changes: 3 additions & 3 deletions contracts/utils/BatchCall.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ pragma solidity ^0.8.0;

import "./Address.sol";

/*
/**
* @dev Provides a function to batch together multiple calls in a single external call.
*/
abstract contract BatchCall {
abstract contract Multicall {
/**
* @dev Receives and executes a batch of function calls on this contract.
*/
function batchCall(bytes[] calldata data) external payable returns(bytes[] memory results) {
function multicall(bytes[] calldata data) external payable returns (bytes[] memory results) {
results = new bytes[](data.length);
for (uint i = 0; i < data.length; i++) {
results[i] = Address.functionDelegateCall(address(this), data[i]);
Expand Down