Skip to content
Snippets Groups Projects
Commit df4807c7 authored by Miguel Braidot's avatar Miguel Braidot
Browse files

Se agregab métodos al SC para obtener las proposals votadas por un votante

parent cc42398d
No related branches found
No related tags found
No related merge requests found
......@@ -166,6 +166,22 @@ contract Ballot
voterList[uidx].votedProposals.push( proposal );
}
function getVotesCountByIdx( uint idx )
public
view
returns(int)
{
return int(voterList[idx].votedProposals.length);
}
function getVotedProposalByVoter( uint idx, uint idp )
public
view
returns ( int )
{
return int(voterList[idx].votedProposals[idp]);
}
function uncreate()
public
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment