Skip to content

Instantly share code, notes, and snippets.

@zeroknots
zeroknots / ExecFunctionGasTest.t.sol
Last active November 10, 2023 04:30
Comparison of Execution structs vs calldata arrays
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
import "forge-std/Test.sol";
import "forge-std/console2.sol";
struct Execution {
// The target contract for account to execute.
address target;
// The value for the execution.