Allow non-beneficiaries to trigger release of their funds (#1275)
* add address argument to PullPayments#withdrawPayments * add argument to SplitPayment#claim * add address argument to PostDeliveryCrowdsale#withdrawTokens * add address argument to RefundableCrowdsale#claimRefund * rename SplitPayment#claim to SplitPayment#release
This commit is contained in:
committed by
GitHub
parent
2aa5dd26be
commit
4eb4d7114d
@ -105,7 +105,7 @@ contract('SampleCrowdsale', function ([_, owner, wallet, investor]) {
|
||||
await increaseTimeTo(this.afterClosingTime);
|
||||
|
||||
await this.crowdsale.finalize({ from: owner });
|
||||
await this.crowdsale.claimRefund({ from: investor, gasPrice: 0 });
|
||||
await this.crowdsale.claimRefund(investor, { gasPrice: 0 });
|
||||
|
||||
const balanceAfterRefund = await ethGetBalance(investor);
|
||||
balanceBeforeInvestment.should.be.bignumber.equal(balanceAfterRefund);
|
||||
|
||||
Reference in New Issue
Block a user