Skip to content
Prev Previous commit
Next Next commit
safely devide bignumber
  • Loading branch information
lead4good committed Oct 31, 2017
commit 93824312daf9716e2ca6e47043421826a623e098
2 changes: 1 addition & 1 deletion test/PreMintedCrowdsale.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ contract('PreMintedCrowdsale', function ([_, wallet]) {
this.crowdsale = PreMintedCrowdsale.at(await this.vault.crowdsale())
this.pseudoMinter = PseudoMinter.at(await this.crowdsale.token())
this.tokenCap = new BigNumber(await this.pseudoMinter.availableSupply.call())
this.cap = new BigNumber(this.tokenCap/rate)
this.cap = this.tokenCap.div(rate)
this.lessThanCap = rate
})

Expand Down