diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-27 09:04:19 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-28 04:07:06 +0800 |
commit | ef40cb96876cb77e897be441ceff1ca1521dc682 (patch) | |
tree | 8f9588a1e615c7c6289c0a433b9c17d82e10f57b /packages/web3-wrapper/src/index.ts | |
parent | 758604fc1ab1fecf1303eef9dfb81192957e495e (diff) | |
download | dexon-sol-tools-ef40cb96876cb77e897be441ceff1ca1521dc682.tar dexon-sol-tools-ef40cb96876cb77e897be441ceff1ca1521dc682.tar.gz dexon-sol-tools-ef40cb96876cb77e897be441ceff1ca1521dc682.tar.bz2 dexon-sol-tools-ef40cb96876cb77e897be441ceff1ca1521dc682.tar.lz dexon-sol-tools-ef40cb96876cb77e897be441ceff1ca1521dc682.tar.xz dexon-sol-tools-ef40cb96876cb77e897be441ceff1ca1521dc682.tar.zst dexon-sol-tools-ef40cb96876cb77e897be441ceff1ca1521dc682.zip |
Add txData to async calls
Diffstat (limited to 'packages/web3-wrapper/src/index.ts')
-rw-r--r-- | packages/web3-wrapper/src/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/web3-wrapper/src/index.ts b/packages/web3-wrapper/src/index.ts index e7c875430..a07805344 100644 --- a/packages/web3-wrapper/src/index.ts +++ b/packages/web3-wrapper/src/index.ts @@ -132,8 +132,8 @@ export class Web3Wrapper { const gas = await promisify<number>(this._web3.eth.estimateGas)(txData); return gas; } - public async callAsync(callData: Web3.CallData): Promise<string> { - const rawCalllResult = await promisify<string>(this._web3.eth.call)(callData); + public async callAsync(callData: Web3.CallData, defaultBlock?: Web3.BlockParam): Promise<string> { + const rawCalllResult = await promisify<string>(this._web3.eth.call)(callData, defaultBlock); return rawCalllResult; } public async sendTransactionAsync(txData: Web3.TxData): Promise<string> { |