mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
25 lines
428 B
Solidity
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: 27200
|
|
// executionCost: 81
|
|
// totalCost: 27281
|
|
// external:
|
|
// readX(): 2290
|
|
// resetX(): 5116
|
|
// setX(uint256): 22312
|