diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/web3_wrapper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web3_wrapper.ts b/src/web3_wrapper.ts index 61bac45c9..1f8038700 100644 --- a/src/web3_wrapper.ts +++ b/src/web3_wrapper.ts @@ -41,8 +41,8 @@ export class Web3Wrapper { return undefined; } } - public toWei(ethAmount: BigNumber.BigNumber): BigNumber.BigNumber { - const balanceWei = this.web3.toWei(ethAmount, 'ether'); + public toWei(amount: BigNumber.BigNumber, unit?: Web3.Unit): BigNumber.BigNumber { + const balanceWei = this.web3.toWei(amount, unit || 'ether'); return balanceWei; } public async getBalanceInWeiAsync(owner: string): Promise<BigNumber.BigNumber> { |