Description:
Smart contract deployed on Ethereum.
Blockchain: Ethereum
Source Code: View Code On The Blockchain
Solidity Source Code:
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.28;
contract Eip_7702_Wallet_Batcher {
struct callDataStruct {
address to;
uint256 value;
bytes data;
}
function batch(
callDataStruct[] memory _callData
) external payable {
for (uint256 i = 0; i < _callData.length; i++) {
(bool success, bytes memory result) = _callData[i].to.call{
value: _callData[i].value
}(_callData[i].data);
if (!success) {
if (result.length > 0) {
assembly {
let returndata_size := mload(result)
revert(add(32, result), returndata_size)
}
} else {
revert("Call failed with no error message");
}
}
}
}
}
Submitted on: 2025-09-24 15:18:08
Comments
Log in to comment.
No comments yet.