Skip to content

Instantly share code, notes, and snippets.

@martagal
martagal / PetAdoptionMarta.sol
Created December 29, 2020 15:33
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.7.4+commit.3f05b770.js&optimize=false&runs=200&gist=
//SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
contract PetAdoption {
Adoption[16] public adoptions;
mapping(uint256 => Pet) private pet_list;
struct Adoption {
@martagal
martagal / PetAdoptionMarta.sol
Created December 28, 2020 16:04
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.12+commit.27d51765.js&optimize=false&runs=200&gist=
//SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
contract PetAdoption {
Adoption[16] public adoptions;
mapping(uint256 => Pet) private pet_list;
struct Adoption {
@martagal
martagal / PetAdoptionMarta.sol
Created December 28, 2020 15:08
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.12+commit.27d51765.js&optimize=false&runs=200&gist=
//SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
contract PetAdoption {
Adoption[16] public adoptions;
mapping(uint256 => Pet) private pet_list;
struct Adoption {