Revert "Add a unit parameter to web3Wrapper.toWei"

This reverts commit 4503c6a09dd9b97fb3b13f0222954b8f1f0db62e.
This commit is contained in:
Leonid Logvinov
2017-08-25 12:11:13 +02:00
parent 5b60d9f0f4
commit 8eb8037f9b

View File

@@ -41,8 +41,8 @@ export class Web3Wrapper {
return undefined;
}
}
public toWei(amount: BigNumber.BigNumber, unit?: Web3.Unit): BigNumber.BigNumber {
const balanceWei = this.web3.toWei(amount, unit || 'ether');
public toWei(ethAmount: BigNumber.BigNumber): BigNumber.BigNumber {
const balanceWei = this.web3.toWei(ethAmount, 'ether');
return balanceWei;
}
public async getBalanceInWeiAsync(owner: string): Promise<BigNumber.BigNumber> {