From 98fd991bd5a381622a470f67ef276c02da9b65f4 Mon Sep 17 00:00:00 2001 From: Alex Wang Date: Tue, 11 Jun 2019 20:42:23 +1200 Subject: [PATCH] fix issue that creates duplicate providers (#983) --- packages/api/src/Base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/Base.ts b/packages/api/src/Base.ts index bf5603985c..ecbad47d0b 100644 --- a/packages/api/src/Base.ts +++ b/packages/api/src/Base.ts @@ -113,7 +113,7 @@ export default abstract class ApiBase implement assert(this.hasSubscriptions, 'Api can only be used with a provider supporting subscriptions'); - this._rpcRx = new RpcRx(thisProvider); + this._rpcRx = new RpcRx(this._rpcBase._provider); this._rpc = this.decorateRpc(this._rpcRx, this.onCall) as any; // FIXME 3.4.1 this._rx.rpc = this.decorateRpc(this._rpcRx, rxOnCall); this._queryMulti = this.decorateMulti(this.onCall) as any; // as above :(