Skip to content

Instantly share code, notes, and snippets.

View jduartedj's full-sized avatar
🏠
Working from home

Duarte Sotto-Mayor Ribeirinho jduartedj

🏠
Working from home
View GitHub Profile
@jduartedj
jduartedj / ballot.sol
Created June 24, 2019 17:27
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.5.1+commit.c8a2cb62.js&optimize=true&gist=
pragma solidity >=0.4.22 <0.6.0;
contract Mensagens {
//lista de nomes de pessoas
address[] public pessoas;
mapping(address => string) public nomes;
struct Mensagem {
string mensagem;
address recetor;