solidity/test/libsolidity/gasTests/storage_costs.sol
2021-05-26 11:36:43 +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: 27000
// executionCost: 81
// totalCost: 27081
// external:
// readX(): 2290
// resetX(): 5116
// setX(uint256): 22312