remove isProjectCanceled check from confirmPayment

This commit is contained in:
perissology 2017-11-09 11:11:11 -08:00
parent 243fa40084
commit 7909aa3977
2 changed files with 0 additions and 8 deletions

View File

@ -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,

View File

@ -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 });