From 70c3515c94e731f060aa8c532eb52d845f07b20f Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Fri, 13 Jul 2018 15:04:17 +0200 Subject: Make createFinalPayload protected --- packages/subproviders/src/subproviders/rpc_subprovider.ts | 2 +- packages/subproviders/src/subproviders/subprovider.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/subproviders') diff --git a/packages/subproviders/src/subproviders/rpc_subprovider.ts b/packages/subproviders/src/subproviders/rpc_subprovider.ts index 5c1c3272c..cb08e729e 100644 --- a/packages/subproviders/src/subproviders/rpc_subprovider.ts +++ b/packages/subproviders/src/subproviders/rpc_subprovider.ts @@ -31,7 +31,7 @@ export class RPCSubprovider extends Subprovider { */ // tslint:disable-next-line:prefer-function-over-method async-suffix public async handleRequest(payload: JSONRPCRequestPayload, next: Callback, end: ErrorCallback): Promise { - const finalPayload = Subprovider.createFinalPayload(payload); + const finalPayload = Subprovider._createFinalPayload(payload); const headers = new Headers({ Accept: 'application/json', 'Content-Type': 'application/json', diff --git a/packages/subproviders/src/subproviders/subprovider.ts b/packages/subproviders/src/subproviders/subprovider.ts index 6f4a8f99e..5dc273569 100644 --- a/packages/subproviders/src/subproviders/subprovider.ts +++ b/packages/subproviders/src/subproviders/subprovider.ts @@ -9,7 +9,7 @@ import { Callback, ErrorCallback, JSONRPCRequestPayloadWithMethod } from '../typ export abstract class Subprovider { // tslint:disable-next-line:underscore-private-and-protected private engine!: Provider; - public static createFinalPayload( + protected static _createFinalPayload( payload: Partial, ): Partial { const finalPayload = { @@ -47,7 +47,7 @@ export abstract class Subprovider { * @returns JSON RPC response payload */ public async emitPayloadAsync(payload: Partial): Promise { - const finalPayload = Subprovider.createFinalPayload(payload); + const finalPayload = Subprovider._createFinalPayload(payload); const response = await promisify(this.engine.sendAsync, this.engine)(finalPayload); return response; } -- cgit