mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-02-18 22:36:36 +00:00
Merge pull request #31 from Giveth/isProjectCanceled
use isProjectCanceled to check for canceled project
This commit is contained in:
commit
09110afc2b
@ -180,7 +180,7 @@ function donate(uint64 idGiver, uint64 idReceiver) payable {
|
|||||||
require(n.paymentState == PaymentState.Paying);
|
require(n.paymentState == PaymentState.Paying);
|
||||||
|
|
||||||
// Check the project is not canceled in the while.
|
// Check the project is not canceled in the while.
|
||||||
require(getOldestPledgeNotCanceled(idPledge) == idPledge);
|
require(!isProjectCanceled(n.owner));
|
||||||
|
|
||||||
uint64 idNewPledge = findOrCreatePledge(
|
uint64 idNewPledge = findOrCreatePledge(
|
||||||
n.owner,
|
n.owner,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user