Skip to content

Commit

Permalink
fix: remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
marslavish committed Nov 7, 2024
1 parent ea253fa commit f89c630
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions templates/chain-template/utils/asset-list/assets.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
import { Asset as OsmosisAsset } from "@chain-registry/types";
import { asset_lists } from "@chain-registry/assets"
import { assets } from "chain-registry"
import { Asset as OsmosisAsset } from '@chain-registry/types';
import { asset_lists } from '@chain-registry/assets';
import { assets } from 'chain-registry';

let osmoAssets: OsmosisAsset[] = []
let osmoAssets: OsmosisAsset[] = [];

const chainInfo = asset_lists.find(({ chain_name }) => chain_name === 'osmosis')
const chainInfo = asset_lists.find(
({ chain_name }) => chain_name === 'osmosis'
);
if (Array.isArray(chainInfo?.assets)) {
osmoAssets = [...chainInfo?.assets]
osmoAssets = [...chainInfo?.assets];
}

let chainInfo2 = assets.find(({ chain_name }) => chain_name === 'osmosis')
let chainInfo2 = assets.find(({ chain_name }) => chain_name === 'osmosis');
if (Array.isArray(chainInfo2?.assets)) {
osmoAssets = [...osmoAssets, ...chainInfo2.assets]
osmoAssets = [...osmoAssets, ...chainInfo2.assets];
}

// @ts-ignore
export const osmosisAssets = osmoAssets
export const osmosisAssets = osmoAssets;

0 comments on commit f89c630

Please sign in to comment.