Skip to content

Commit

Permalink
fix: add manifest mainnet (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency authored Mar 11, 2025
1 parent a052050 commit 8a1777d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions config/manifestChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ let manifestModule: {
ibc?: IBCInfo[];
};

// TODO: Add mainnet manifest when it's available

if (buildType === 'qa') {
manifestModule = require('chain-registry/devnet/manifestdevnet');
} else {
} else if (buildType === 'testnet') {
manifestModule = require('chain-registry/testnet/manifesttestnet');
} else {
manifestModule = require('chain-registry/mainnet/manifest');
}

let manifestAssets: AssetList, manifestChain: Chain, manifestIbc: IBCInfo[];
Expand All @@ -24,11 +24,16 @@ if (buildType === 'qa') {
manifestAssets = assets;
manifestChain = chain;
manifestIbc = []; // Default value since devnet doesn't include ibc
} else {
} else if (buildType === 'testnet') {
const { assets, chain, ibc } = manifestModule;
manifestAssets = assets;
manifestChain = chain;
manifestIbc = ibc!;
} else {
const { assets, chain } = manifestModule;
manifestAssets = assets;
manifestChain = chain;
manifestIbc = []; // TODO: Update IBC info when available
}

export { manifestAssets, manifestChain, manifestIbc };

0 comments on commit 8a1777d

Please sign in to comment.