Skip to content

Commit

Permalink
chore: revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
canhtrinh committed Aug 16, 2023
1 parent ea47dee commit 78d12c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config/web3/cosmos/testnet/burnt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const burnt: CosmosChain = {
rest: "https://api.xion-testnet-1.burnt.com",
chainId: "xion-testnet-1",
chainName: "Burnt Testnet",
chainIdentifier: "burnt-2",
chainIdentifier: "burnt",
bech32Config: Bech32Address.defaultBech32Config("xion"),
bip44: { coinType: 118 },
currencies: [
Expand Down
3 changes: 2 additions & 1 deletion src/store/stores/swap-store/computed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export const getSrcChainId = memoize((state: { srcChain: ChainInfo }) => {
export const getDestCosmosChain = memoize(
(state: { allAssets: AssetConfigExtended[]; destChain: ChainInfo }) => {
const chain = getCosmosChains(state.allAssets).find(
(_chain) => _chain.chainIdentifier === state.destChain.id
(_chain) =>
_chain.chainIdentifier === state.destChain.chainName?.toLowerCase()
);
if (!chain) {
return null;
Expand Down

1 comment on commit 78d12c3

@vercel
Copy link

@vercel vercel bot commented on 78d12c3 Aug 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.