solidity/test/libsolidity/gasTests/storage_costs.sol
Daniel Kirchner 44da8507b1 Change default EVM version to Shanghai.
Co-authored-by: Rodrigo Q. Saramago <rodrigoqsaramago@gmail.com>
2023-05-08 16:34:23 +02:00

25 lines
428 B
Solidity

contract C {
uint x;
function setX(uint y) public {
x = y;
}
function resetX() public {
x = 0;
}
function readX() public view returns(uint) {
return x;
}
}
// ====
// optimize: true
// optimize-yul: true
// ----
// creation:
// codeDepositCost: 25600
// executionCost: 73
// totalCost: 25673
// external:
// readX(): 2288
// resetX(): 5114
// setX(uint256): 22309