github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/js/src/test/flipper.sol (about)

     1  contract flipper {
     2  	bool private value;
     3  
     4  	/// Constructor that initializes the `bool` value to the given `init_value`.
     5  	constructor(bool initvalue) {
     6  		value = initvalue;
     7  	}
     8  
     9  	/// A message that can be called on instantiated contracts.
    10  	/// This one flips the value of the stored `bool` from `true`
    11  	/// to `false` and vice versa.
    12  	function flip() public {
    13  		value = !value;
    14  	}
    15  
    16  	/// Simply returns the current value of our `bool`.
    17  	function get() public view returns (bool) {
    18  		return value;
    19  	}
    20  }