diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-13 21:04:17 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-13 21:04:17 +0800 |
commit | 70c3515c94e731f060aa8c532eb52d845f07b20f (patch) | |
tree | 89a229061b11c38cb26c74a0674af3241fcf170d | |
parent | 4c7fd5a4e8b745bfdbfca20b5495f48332aae90d (diff) | |
download | dexon-0x-contracts-70c3515c94e731f060aa8c532eb52d845f07b20f.tar.gz dexon-0x-contracts-70c3515c94e731f060aa8c532eb52d845f07b20f.tar.zst dexon-0x-contracts-70c3515c94e731f060aa8c532eb52d845f07b20f.zip |
Make createFinalPayload protected
-rw-r--r-- | packages/subproviders/src/subproviders/rpc_subprovider.ts | 2 | ||||
-rw-r--r-- | packages/subproviders/src/subproviders/subprovider.ts | 4 |
2 files changed, 3 insertions, 3 deletions
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<void> { - 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<JSONRPCRequestPayloadWithMethod>, ): Partial<JSONRPCRequestPayloadWithMethod> { const finalPayload = { @@ -47,7 +47,7 @@ export abstract class Subprovider { * @returns JSON RPC response payload */ public async emitPayloadAsync(payload: Partial<JSONRPCRequestPayloadWithMethod>): Promise<JSONRPCResponsePayload> { - const finalPayload = Subprovider.createFinalPayload(payload); + const finalPayload = Subprovider._createFinalPayload(payload); const response = await promisify<JSONRPCResponsePayload>(this.engine.sendAsync, this.engine)(finalPayload); return response; } |