Skip to content

Commit

Permalink
M-3 removing payable
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzschoff committed Aug 16, 2023
1 parent ad52224 commit e783387
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions protocol/synthetix/contracts/interfaces/IMulticallModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface IMulticallModule {
* @param data Array of calldata objects, one for each function that is to be called in the system.
* @return results Array of each `delegatecall`'s response corresponding to the incoming calldata array.
*/
function multicall(bytes[] calldata data) external payable returns (bytes[] memory results);
function multicall(bytes[] calldata data) external returns (bytes[] memory results);

/**
* @notice Similar to `multicall`, but allows for transactions to be executed
Expand All @@ -24,7 +24,7 @@ interface IMulticallModule {
/*function multicallThrough(
address[] calldata to,
bytes[] calldata data
) external payable returns (bytes[] memory results);
) external returns (bytes[] memory results);
function getMessageSender() external view returns (address);*/
}
6 changes: 2 additions & 4 deletions protocol/synthetix/contracts/modules/core/MulticallModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ contract MulticallModule is IMulticallModule {
/**
* @inheritdoc IMulticallModule
*/
function multicall(
bytes[] calldata data
) public payable override returns (bytes[] memory results) {
function multicall(bytes[] calldata data) public override 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 All @@ -40,7 +38,7 @@ contract MulticallModule is IMulticallModule {
/*function multicallThrough(
address[] calldata to,
bytes[] calldata data
) public payable override returns (bytes[] memory results) {
) public override returns (bytes[] memory results) {
if (Config.read(_CONFIG_MESSAGE_SENDER, 0) != 0) {
revert RecursiveMulticall(msg.sender);
}
Expand Down

0 comments on commit e783387

Please sign in to comment.