cleanup contract debugging and make sure contributions are only once claimable

This commit is contained in:
2019-03-24 22:33:16 +01:00
parent cd7df3893e
commit fbda45376e
2 changed files with 3 additions and 4 deletions

View File

@@ -123,9 +123,9 @@ contract Proposal is AragonApp {
require(!p.executed, 'ALREADY_EXECUTED');
require(p.votesCount >= p.votesNeeded, 'MISSING_VOTES');
p.executed = true;
address contributorAccount = IContributor(getContributorContract()).getContributorAddressById(p.contributorId);
IContribution(getContributionContract()).add(p.amount, contributorAccount, p.hashDigest, p.hashFunction, p.hashSize);
p.executed = true;
emit ProposalExecuted(proposalId, p.contributorId, p.amount);
}