...ED
pragma solidity ^0.8.17;
import "forge-std/Test.sol";
// Assume Target and Relayer contracts are defined above or imported
contract RelayerTest is Test {
Target target;
Relayer relayer;
address maliciousForwarder;
bytes testData;
function setUp() public {
target = n...
...n data, the higher the gas fees. Calldata costs 4 gas per byte equal to 0, and 16 gas for the others (64 before the hardfork Istanbul).
>
> Calldata大小:每个calldata字节都要消耗gas,交易数据的大小越大,gas费用就越高。Calldata每字节花费4 gas,等于0时为零费用...
... Note that this is the rustc version that ships with Solana tools and not your system's rustc version. Use `solana-install update` or head over to https://docs.solanalabs.com/cli/install to install a newer version.
bytemuck_derive@1.9.2 requires rustc 1.84
Either upgrade rustc or ...