Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pragma solidity ^0.4.17;
- contract Adoption {
- address[16] public adopters;
- function adopt(uint petId) public returns (uint) {
- require(petId >= 0 && petId <= 15);
- adopters[petId] = msg.sender;
- return petId;
- }
- // Retrieving the adopters
- function getAdopters() public view returns (address[16]) {
- return adopters;
- }
- }
Add Comment
Please, Sign In to add comment