Commit df4807c7 authored by Miguel Braidot's avatar Miguel Braidot

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

parent cc42398d
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment