Skip to content

Instantly share code, notes, and snippets.

@falehenrique
Created December 16, 2017 16:24
Show Gist options
  • Save falehenrique/06a7d86d052fb0b59069060c9c3f3796 to your computer and use it in GitHub Desktop.
Save falehenrique/06a7d86d052fb0b59069060c9c3f3796 to your computer and use it in GitHub Desktop.
ContratoPessoa.sol
// prama informa a EVM a versão do solidity,
pragma solidity ^0.4.18;
contract Pessoa {
//variável do tipo string
string public nome;
string public email;
//eventos
event LogPersonEmailAlterado(address _pessoa, string emailAlterado);
// construtor
function Pessoa(string _nome, string _email) public {
nome = _nome;
email = _email;
// RegistroContratos reg = RegistroContrato(registro);
// address endereco = reg.getEnderecoContrato();
// ValidadoCPF val = Validado(endereco);
// val.validaMeuCPF();
}
// função com modificador
function mudarEmail(string _newMail) public {
email = _newMail;
}
//function (<parameter types>) {internal|external|public|private} [constant{pure, view}] [modificador] [returns (<return types>)]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment