File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -121,10 +121,7 @@ export class Centrifuge {
121121 return this . getClient ( centrifugeId ) . chain
122122 }
123123
124- /** @internal */
125- _getClientByCentrifugeId ( centrifugeId : CentrifugeId ) {
126- return this . _query ( [ 'clientByCentrifugeId' , centrifugeId ] , ( ) => of ( this . getClient ( centrifugeId ) ) )
127- }
124+
128125
129126 #signer: Signer | null = null
130127 setSigner ( signer : Signer | null ) {
@@ -420,7 +417,7 @@ export class Centrifuge {
420417 assetCurrency ( assetId : AssetId ) {
421418 return this . _query ( [ 'asset' , assetId . toString ( ) ] , ( ) =>
422419 combineLatest ( [
423- this . _getClientByCentrifugeId ( assetId . centrifugeId ) ,
420+ of ( this . getClient ( assetId . centrifugeId ) ) ,
424421 this . _idToChain ( assetId . centrifugeId ) ,
425422 ] ) . pipe (
426423 switchMap ( ( [ client , chainId ] ) =>
Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ export class ShareClass extends Entity {
339339 combineLatest ( [
340340 this . _share ( centrifugeId ) ,
341341 this . _restrictionManager ( centrifugeId ) ,
342- this . _root . _getClientByCentrifugeId ( centrifugeId ) ,
342+ of ( this . _root . getClient ( centrifugeId ) ) ,
343343 this . _root . _idToChain ( centrifugeId ) ,
344344 ] ) . pipe (
345345 switchMap ( ( [ share , restrictionManager , client , chainId ] ) =>
@@ -2368,7 +2368,7 @@ export class ShareClass extends Entity {
23682368 /** @internal */
23692369 _restrictionManager ( centrifugeId : CentrifugeId ) {
23702370 return this . _query ( [ 'restrictionManager' , centrifugeId ] , ( ) =>
2371- combineLatest ( [ this . _share ( centrifugeId ) , this . _root . _getClientByCentrifugeId ( centrifugeId ) ] ) . pipe (
2371+ combineLatest ( [ this . _share ( centrifugeId ) , of ( this . _root . getClient ( centrifugeId ) ) ] ) . pipe (
23722372 switchMap ( ( [ share , client ] ) =>
23732373 defer ( async ( ) => {
23742374 const address = await client . readContract ( {
You can’t perform that action at this time.
0 commit comments