Merge pull request #31 from Giveth/isProjectCanceled

use isProjectCanceled to check for canceled project
This commit is contained in:
Jordi Baylina 2017-11-01 04:40:21 -05:00 committed by GitHub
commit 09110afc2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ function donate(uint64 idGiver, uint64 idReceiver) payable {
require(n.paymentState == PaymentState.Paying);
// Check the project is not canceled in the while.
require(getOldestPledgeNotCanceled(idPledge) == idPledge);
require(!isProjectCanceled(n.owner));
uint64 idNewPledge = findOrCreatePledge(
n.owner,