aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorlibertylocked <unlock.liberty@gmail.com>2017-07-18 08:52:33 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-10 18:24:34 +0800
commitcf37dfb257476135218838192cae946c9e904cff (patch)
tree45fc56dd5dc50db2f3e29e3d499869ae4bbfbc4b /packages
parent217f84204e30e1d2bc33ee31047a1f612d8ce2d4 (diff)
downloaddexon-sol-tools-cf37dfb257476135218838192cae946c9e904cff.tar
dexon-sol-tools-cf37dfb257476135218838192cae946c9e904cff.tar.gz
dexon-sol-tools-cf37dfb257476135218838192cae946c9e904cff.tar.bz2
dexon-sol-tools-cf37dfb257476135218838192cae946c9e904cff.tar.lz
dexon-sol-tools-cf37dfb257476135218838192cae946c9e904cff.tar.xz
dexon-sol-tools-cf37dfb257476135218838192cae946c9e904cff.tar.zst
dexon-sol-tools-cf37dfb257476135218838192cae946c9e904cff.zip
Add web3.eth.blockNumber
Diffstat (limited to 'packages')
-rw-r--r--packages/web3-typescript-typings/index.d.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts
index 01ee172b5..92093cff0 100644
--- a/packages/web3-typescript-typings/index.d.ts
+++ b/packages/web3-typescript-typings/index.d.ts
@@ -15,7 +15,8 @@ declare module 'web3' {
defaultAccount: string;
compile: {
solidity(sourceString: string, cb?: (err: any, result: any) => void): object,
- }
+ };
+ blockNumber: number;
sign(address: string, message: string, callback: (err: Error, signData: string) => void): string;
getBlock(blockHash: string, callback: (err: Error, blockObj: any) => void): BigNumber.BigNumber;
getBlockNumber(callback: (err: Error, blockNumber: number) => void): void;