aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-08-25 18:11:13 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-08-29 16:01:13 +0800
commit8eb8037f9bb357e31d3a04dce145cb56628c2ec6 (patch)
tree60b37ce53255f4fa9f7be3b6f9d60ee0845eed8d
parent5b60d9f0f487719510e8d3463faf2fbad9d95d61 (diff)
downloaddexon-sol-tools-8eb8037f9bb357e31d3a04dce145cb56628c2ec6.tar.gz
dexon-sol-tools-8eb8037f9bb357e31d3a04dce145cb56628c2ec6.tar.zst
dexon-sol-tools-8eb8037f9bb357e31d3a04dce145cb56628c2ec6.zip
Revert "Add a unit parameter to web3Wrapper.toWei"
This reverts commit 4503c6a09dd9b97fb3b13f0222954b8f1f0db62e.
-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 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<BigNumber.BigNumber> {