Skip to content

Instantly share code, notes, and snippets.

@rpaskin
Last active July 29, 2024 18:01
Show Gist options
  • Save rpaskin/f6edc071b1b41b43e79f6b77f0cc43e4 to your computer and use it in GitHub Desktop.
Save rpaskin/f6edc071b1b41b43e79f6b77f0cc43e4 to your computer and use it in GitHub Desktop.
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.2 <0.9.0;
contract RedeSocial {
string perfil;
address dono;
function guardar(string calldata _perfil, address _dono) public {
perfil = _perfil;
dono = _dono;
}
function recuperar() public view returns (string memory _perfil, address _dono){
return (perfil, dono);
}
}
contract Atrasagram is RedeSocial {
uint public idade;
function guardar(string calldata _perfil, address _dono, uint _idade) public {
idade = _idade;
super.guardar(_perfil, _dono);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment