github.com/tri-stone/burrow@v0.25.0/tests/jobs_fixtures/app50-set-storage-zero/storageIssueWithZero.sol (about)

     1  pragma solidity ^0.5.4;
     2  
     3  contract storageIssueWithZero {
     4  
     5    int private storedInt;
     6    uint private storedUint;
     7    int foo = 102;
     8  
     9    function setInt(int x) public {
    10      storedInt = x;
    11    }
    12  
    13    function setIntToZero() public {
    14      storedInt = 0;
    15    }
    16  
    17    function getInt() view public returns (int retInt) {
    18      return storedInt;
    19    }
    20  
    21    function setUint(uint x) public {
    22      storedUint = x;
    23    }
    24  
    25    function setUintToZero() public {
    26      storedUint = 0;
    27    }
    28  
    29    function getUint() view public returns (uint retUint) {
    30      return storedUint;
    31    }
    32  
    33  }