fix issue that creates duplicate providers (#983)

This commit is contained in:
Alex Wang
2019-06-11 10:42:23 +02:00
committed by Amaury Martiny
parent 0b66f27a8c
commit 98fd991bd5
+1 -1
View File
@@ -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 :(