github.com/Tri-stone/burrow@v0.25.0/tests/jobs_fixtures/app25-multiple_contracts_single_factory/contracts/Factory.sol (about)

     1  pragma solidity >=0.0.0;
     2  
     3  contract Storage {
     4    uint storedData;
     5  
     6    function set(uint x) public {
     7      storedData = x;
     8    }
     9  
    10    function get() public view returns (uint retVal) {
    11      return storedData;
    12    }
    13  }
    14  
    15  contract GSFactory {
    16    address lastCreated;
    17  
    18    function create() public returns (address GSAddr) {
    19      lastCreated = address(new Storage());
    20      return lastCreated;
    21    }
    22  
    23    function last() public view returns (address GSAddr) {
    24      return lastCreated;
    25    }
    26  }