From 83c37c6a7a320326975c8afd9d49a42c9afcefd4 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 22 May 2018 11:05:24 -0700 Subject: Address feedback --- packages/subproviders/src/utils/subprovider_utils.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/subproviders') diff --git a/packages/subproviders/src/utils/subprovider_utils.ts b/packages/subproviders/src/utils/subprovider_utils.ts index 380f98606..24ebedd06 100644 --- a/packages/subproviders/src/utils/subprovider_utils.ts +++ b/packages/subproviders/src/utils/subprovider_utils.ts @@ -9,5 +9,7 @@ import { Subprovider } from '../subproviders/subprovider'; */ export function prependSubprovider(provider: ProviderEngine, subprovider: Subprovider): void { subprovider.setEngine(provider); + // HACK: We use implementation details of provider engine here + // https://github.com/MetaMask/provider-engine/blob/master/index.js#L68 (provider as any)._providers = [subprovider, ...(provider as any)._providers]; } -- cgit v1.2.3