aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-24 23:42:47 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-10 18:24:32 +0800
commit07eb25008375ef3bc40af9475b02683b612a39d1 (patch)
treee6dfb2bff81bce59737c9f3c623eaae233422b2d /packages
parentee04717e1b60667a1215ccd2e3fba20ef6965e96 (diff)
downloaddexon-sol-tools-07eb25008375ef3bc40af9475b02683b612a39d1.tar
dexon-sol-tools-07eb25008375ef3bc40af9475b02683b612a39d1.tar.gz
dexon-sol-tools-07eb25008375ef3bc40af9475b02683b612a39d1.tar.bz2
dexon-sol-tools-07eb25008375ef3bc40af9475b02683b612a39d1.tar.lz
dexon-sol-tools-07eb25008375ef3bc40af9475b02683b612a39d1.tar.xz
dexon-sol-tools-07eb25008375ef3bc40af9475b02683b612a39d1.tar.zst
dexon-sol-tools-07eb25008375ef3bc40af9475b02683b612a39d1.zip
Allow numbers to also be passed to fromWei and toWei
Diffstat (limited to 'packages')
-rw-r--r--packages/web3-typescript-typings/index.d.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts
index bcb5dc575..8b8c99e28 100644
--- a/packages/web3-typescript-typings/index.d.ts
+++ b/packages/web3-typescript-typings/index.d.ts
@@ -32,8 +32,8 @@ declare module 'web3' {
public setProvider(provider: providers.Provider): void;
public currentProvider(): any;
- public fromWei(amount: BigNumber.BigNumber, unit: string): BigNumber.BigNumber;
- public toWei(amount: BigNumber.BigNumber, unit: string): BigNumber.BigNumber;
+ public fromWei(amount: number|BigNumber.BigNumber, unit: string): BigNumber.BigNumber;
+ public toWei(amount: number|BigNumber.BigNumber, unit: string): BigNumber.BigNumber;
public isAddress(address: string): boolean;
}