| 1234567891011121314151617181920 |
- pragma solidity 0;
- contract incrementer {
- uint32 private value;
- /// Constructor that initializes the `int32` value to the given `init_value`.
- constructor(uint32 initvalue) {
- value = initvalue;
- }
- /// This increments the value by `by`.
- function inc(uint32 by) public {
- value += by;
- }
- /// Simply returns the current value of our `uint32`.
- function get() public view returns (uint32) {
- return value;
- }
- }
|