fix issue that creates duplicate providers (#983)
This commit is contained in:
committed by
Amaury Martiny
parent
0b66f27a8c
commit
98fd991bd5
@@ -113,7 +113,7 @@ export default abstract class ApiBase<CodecResult, SubscriptionResult> 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 :(
|
||||
|
||||
Reference in New Issue
Block a user