//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.25; contract Alyra { function addParticipant(address _addr, string _nom) public { participants.push(Participant(_addr,_nom)); } function getParticipantAddr(uint _indice) public constant returns (address) { return participants[_indice].addr; } function getParticipantName(uint _indice) public constant returns (string) { return participants[_indice].nom; } struct Participant{ address addr; string nom; } Participant[] participants; }
0.4.25