diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-24 23:42:47 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-10 18:24:32 +0800 |
commit | 07eb25008375ef3bc40af9475b02683b612a39d1 (patch) | |
tree | e6dfb2bff81bce59737c9f3c623eaae233422b2d | |
parent | ee04717e1b60667a1215ccd2e3fba20ef6965e96 (diff) | |
download | dexon-sol-tools-07eb25008375ef3bc40af9475b02683b612a39d1.tar.gz dexon-sol-tools-07eb25008375ef3bc40af9475b02683b612a39d1.tar.zst dexon-sol-tools-07eb25008375ef3bc40af9475b02683b612a39d1.zip |
Allow numbers to also be passed to fromWei and toWei
-rw-r--r-- | packages/web3-typescript-typings/index.d.ts | 4 |
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; } |