diff --git a/contracts/src/utils/MultiSend.sol b/contracts/src/utils/MultiSend.sol index f2507af..15e6834 100644 --- a/contracts/src/utils/MultiSend.sol +++ b/contracts/src/utils/MultiSend.sol @@ -23,7 +23,7 @@ contract MultiSendCallOnly { * @notice This method is payable as delegatecalls keep the msg.value from the previous call * If the calling method (e.g. execTransaction) received ETH this would revert otherwise */ - function multiSend(bytes memory transactions) public payable { + function multiSend(bytes memory transactions) internal { /* solhint-disable no-inline-assembly */ assembly { let length := mload(transactions) @@ -50,9 +50,13 @@ contract MultiSendCallOnly { let data := add(transactions, add(i, 0x55)) let success := 0 switch operation - case 0 { success := call(gas(), to, value, data, dataLength, 0, 0) } + case 0 { + success := call(gas(), to, value, data, dataLength, 0, 0) + } // This version does not allow delegatecalls - case 1 { revert(0, 0) } + case 1 { + revert(0, 0) + } if eq(success, 0) { returndatacopy(0, 0, returndatasize()) revert(0, returndatasize())