Skip to content

Commit

Permalink
Address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vkulinich-cl committed Jan 23, 2024
1 parent dacfd56 commit 37fbde7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/sdk/src/client/AssetClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,14 @@ export class AssetClient extends PolkadotApiClient {
}

async getOnChainAssets(): Promise<Asset[]> {
const assetMetadata = await this.metadataQuery();

const [asset, assetLocations, shares, bonds] = await Promise.all([
this.api.query.assetRegistry.assets.entries(),
this.locationsQuery(),
this.safeSharesQuery(),
this.safeBondsQuery(),
]);
const [asset, assetLocations, shares, bonds, assetMetadata] =
await Promise.all([
this.api.query.assetRegistry.assets.entries(),
this.locationsQuery(),
this.safeSharesQuery(),
this.safeBondsQuery(),
this.metadataQuery(),
]);

const filteredAssets = asset.filter(
([_args, state]) => !state.isNone && this.isSupportedType(state.unwrap())
Expand Down

0 comments on commit 37fbde7

Please sign in to comment.