Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
piatoss3612 committed Feb 28, 2025
1 parent 7ddf7d2 commit bf4914e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions apps/extension/src/pages/main/token-detail/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ export const TokenDetailModal: FunctionComponent<{
// TODO: 일단 cosmos가 아니면 대충에기에다가 force currency 로직을 박아놓는다...
// 나중에 이런 기능을 chain store 자체에다가 만들어야한다.
const modularChainInfoImpl = chainStore.getModularChainInfoImpl(chainId);
const modularChainInfoImplImpl =
const currencies =
"bitcoin" in modularChainInfo
? modularChainInfoImpl.getCurrencies("bitcoin")
: modularChainInfoImpl.getCurrencies("starknet");
const res = modularChainInfoImplImpl.find(
const res = currencies.find(
(cur) => cur.coinMinimalDenom === coinMinimalDenom
);
if (res) {
Expand Down
10 changes: 1 addition & 9 deletions apps/extension/src/stores/huge-queries/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,15 +291,7 @@ export class HugeQueriesStore {
const queries = this.bitcoinQueriesStore.get(modularChainInfo.chainId);
const currencies = modularChainInfoImpl.getCurrencies("bitcoin");

// TODO: bitcoin coinMinimalDenom 변경 시 수정 필요
const currency = currencies.find(
(currency) =>
currency.coinMinimalDenom.startsWith("taproot:bitcoin") ||
currency.coinMinimalDenom.startsWith("nativeSegwit:bitcoin")
);
if (!currency) {
continue;
}
const currency = currencies[0];

const queryBalance = queries.queryBitcoinBalance.getBalance(
modularChainInfo.chainId,
Expand Down

0 comments on commit bf4914e

Please sign in to comment.