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 :(