From 8eb8037f9bb357e31d3a04dce145cb56628c2ec6 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Fri, 25 Aug 2017 12:11:13 +0200 Subject: Revert "Add a unit parameter to web3Wrapper.toWei" This reverts commit 4503c6a09dd9b97fb3b13f0222954b8f1f0db62e. --- src/web3_wrapper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/web3_wrapper.ts b/src/web3_wrapper.ts index 1f8038700..61bac45c9 100644 --- a/src/web3_wrapper.ts +++ b/src/web3_wrapper.ts @@ -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 { -- cgit v1.2.3