-
-
Save falehenrique/06a7d86d052fb0b59069060c9c3f3796 to your computer and use it in GitHub Desktop.
ContratoPessoa.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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