Add txData to async calls

This commit is contained in:
Leonid Logvinov
2018-02-26 17:04:19 -08:00
parent 758604fc1a
commit ef40cb9687
4 changed files with 14 additions and 6 deletions

View File

@@ -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> {