Skip to content

Instantly share code, notes, and snippets.

@rpaskin
Created July 29, 2024 18:17
Show Gist options
  • Save rpaskin/08720c2487f785fc5dce2f4cf015be8e to your computer and use it in GitHub Desktop.
Save rpaskin/08720c2487f785fc5dce2f4cf015be8e to your computer and use it in GitHub Desktop.
RedeSocial2 de introduçao a contratos inteligents
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.2 <0.9.0;
contract RedeSocial {
string public perfil;
address private dono;
function guardar(string calldata _perfil, address _dono) public {
perfil = _perfil;
guardar_dono(_dono);
}
function guardar_dono(address _dono) private {
dono = _dono;
}
function verifica_dono(address _dono) public view returns (bool) {
return (dono == _dono);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment