github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/tests/jobs_fixtures/app54-static-call/Adoption.sol (about)

     1  pragma solidity ^0.5;
     2  
     3  contract Adoption {
     4    
     5    address[16] public adopters;
     6  
     7    function adopt(uint petId) public returns (uint) {
     8      require(petId >= 0 && petId <= 15);
     9      adopters[petId] = msg.sender;
    10      
    11      return petId;
    12    }
    13  
    14    // Retrieving the adopters
    15    function getAdopters() public view returns (address[16] memory) {
    16      return adopters;
    17    }
    18  }