aboutsummaryrefslogtreecommitdiffstats
path: root/packages/web3-wrapper
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-27 09:04:19 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-02-28 04:07:06 +0800
commitef40cb96876cb77e897be441ceff1ca1521dc682 (patch)
tree8f9588a1e615c7c6289c0a433b9c17d82e10f57b /packages/web3-wrapper
parent758604fc1ab1fecf1303eef9dfb81192957e495e (diff)
downloaddexon-sol-tools-ef40cb96876cb77e897be441ceff1ca1521dc682.tar.gz
dexon-sol-tools-ef40cb96876cb77e897be441ceff1ca1521dc682.tar.zst
dexon-sol-tools-ef40cb96876cb77e897be441ceff1ca1521dc682.zip
Add txData to async calls
Diffstat (limited to 'packages/web3-wrapper')
-rw-r--r--packages/web3-wrapper/src/index.ts4
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> {