// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract CallRecorder {
struct CallInfo {
address sender;
bytes data;
uint256 gas;
uint256 value;
}
CallInfo public lastCall;
function record() public payable {
lastCall.sender = msg.sender;
lastCall.data = msg.data;
lastCall.gas = gasleft();
lastCall.value = msg.value;
}
}
-
Mark Tyneway authored
Makes the contracts more lenient in the version of solc that they can compile with, makes it easier to begin porting the hardhat based tests to `foundry`.
957c3935