Eip_7702_Wallet_Batcher

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");
                }
            }
        }
    }
}

Tags:
addr:0xa90ee3df1469830ab539a5adf7d4e174b99d7259|verified:true|block:23423212|tx:0xa6756a34becfb405ec74e6a757079613bf15a40a235f2114d8716a45d88ae236|first_check:1758719883

Submitted on: 2025-09-24 15:18:08

Comments

Log in to comment.

No comments yet.