github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/execution/wasm/storage_test.solang (about)

     1  
     2  
     3  contract storage_test {
     4  	uint64 foo;
     5  
     6  	constructor() public {
     7  		foo = 102;
     8  	}
     9  
    10  	function getFooPlus2() public view returns (uint64) {
    11  		return foo + 2;
    12  	}
    13  
    14  	function incFoo() public {
    15  		foo += 1;
    16  	}
    17  }