github.com/tri-stone/burrow@v0.25.0/tests/jobs_fixtures/app08-initialization_constructors_in_contracts/contracts/storage.sol (about)

     1  pragma solidity >=0.0.0;
     2  
     3  contract SimpleConstructorInt {
     4    uint public storedData;
     5  
     6    constructor(uint x, uint /* y */) public {
     7      storedData = x;
     8    }
     9  }
    10  
    11  contract SimpleConstructorBool {
    12    bool public storedData;
    13  
    14    constructor(bool x, bool /* y */) public {
    15      storedData = x;
    16    }
    17  }
    18  
    19  contract SimpleConstructorString {
    20    string public storedData;
    21  
    22    constructor(string memory x, string memory /* y */) public {
    23      storedData = x;
    24    }
    25  }
    26  
    27  contract SimpleConstructorBytes {
    28    bytes32 public storedData;
    29  
    30    constructor(bytes32 x, bytes32 /* y */) public {
    31      storedData = x;
    32    }
    33  }
    34  
    35  contract SimpleConstructorArray {
    36    uint[3] public storedData;
    37  
    38    constructor(uint[3] memory x, uint[3] memory /* y */) public {
    39      storedData = x;
    40    }
    41  
    42    function get() public view returns (uint[3] memory) {
    43      return storedData;
    44    }
    45  }