Fix TS error

This commit is contained in:
Fabio Berger
2018-04-03 14:52:31 +09:00
parent 6d53947fd8
commit e70b6630f9

View File

@@ -40,7 +40,7 @@ export class Subprovider {
*/
public async emitPayloadAsync(payload: Partial<JSONRPCRequestPayloadWithMethod>): Promise<JSONRPCResponsePayload> {
const finalPayload = Subprovider._createFinalPayload(payload);
const response = await promisify(this._engine.sendAsync, this._engine)(finalPayload);
const response: any = await promisify(this._engine.sendAsync, this._engine)(finalPayload);
return response;
}
/**