remove isProjectCanceled check from confirmPayment
This commit is contained in:
parent
243fa40084
commit
7909aa3977
|
@ -179,9 +179,6 @@ function donate(uint64 idGiver, uint64 idReceiver) payable {
|
|||
|
||||
require(n.paymentState == PaymentState.Paying);
|
||||
|
||||
// Check the project is not canceled in the while.
|
||||
require(!isProjectCanceled(n.owner));
|
||||
|
||||
uint64 idNewPledge = findOrCreatePledge(
|
||||
n.owner,
|
||||
n.delegationChain,
|
||||
|
|
|
@ -272,11 +272,6 @@ describe('LiquidPledging test', () => {
|
|||
it('project2 is canceled', async () => {
|
||||
await liquidPledging.cancelProject(4, { from: adminProject2 });
|
||||
}).timeout(6000);
|
||||
it('project2 should not be able to confirm payment', async () => {
|
||||
await assertFail(async () => {
|
||||
await vault.confirmPayment(1);
|
||||
});
|
||||
}).timeout(6000);
|
||||
it('Should not be able to withdraw it', async () => {
|
||||
await assertFail(async () => {
|
||||
await liquidPledging.withdraw(12, utils.toWei(0.005), { from: giver1 });
|
||||
|
|
Loading…
Reference in New Issue