github.com/datachainlab/burrow@v0.25.0/execution/solidity/zero_reset.sol (about)

     1  pragma solidity ^0.5.4;
     2  
     3  // Originally taken from: https://github.com/hyperledger/burrow/issues/847
     4  contract ZeroReset {
     5      int private storedInt;
     6      uint private storedUint;
     7  
     8      function setInt(int x) public {
     9          storedInt = x;
    10      }
    11  
    12      function setIntToZero() public {
    13          storedInt = 0;
    14      }
    15  
    16      function getInt() view public returns (int retInt) {
    17          return storedInt;
    18      }
    19  
    20      function setUint(uint x) public {
    21          storedUint = x;
    22      }
    23  
    24      function setUintToZero() public {
    25          storedUint = 0;
    26      }
    27  
    28      function getUint() view public returns (uint retUint) {
    29          return storedUint;
    30      }
    31  }