aboutsummaryrefslogblamecommitdiff
path: root/examples/counter/counter.sol
blob: c05bf2398574cdb7e78ebd59e323ce8bc0c4f9da (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                      
pragma solidity ^0.5.10;

contract Counter {
    uint256 x;

    constructor() public {
        x = 42;
    }

    function add(uint256 y) public returns (uint256) {
        x = x + y;
        return x;
    }
}