You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
203 B
13 lines
203 B
6 years ago
|
pragma solidity ^0.5.3;
|
||
8 years ago
|
|
||
|
contract Simple {
|
||
|
uint x = 0;
|
||
|
|
||
6 years ago
|
function test(uint val) public {
|
||
8 years ago
|
x = x + val;
|
||
|
}
|
||
|
|
||
6 years ago
|
function getX() public view returns (uint){
|
||
8 years ago
|
return x;
|
||
|
}
|
||
|
}
|