aboutsummaryrefslogtreecommitdiffstats
path: root/src/web3_wrapper.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/web3_wrapper.ts')
-rw-r--r--src/web3_wrapper.ts4
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> {