Skip to content

Commit

Permalink
chore: adjust types for UTXO
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Feb 1, 2024
1 parent bb8d3eb commit 9a18f1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/widget/src/utils/chainType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { isSVMAddress } from './svm';
const chainTypeAddressValidation = {
[ChainType.EVM]: isEVMAddress,
[ChainType.SVM]: isSVMAddress,
[ChainType.UTXO]: () => false,
};

export const getChainTypeFromAddress = (
Expand All @@ -22,4 +23,5 @@ export const getChainTypeFromAddress = (
export const defaultChainIdsByType = {
[ChainType.EVM]: ChainId.ETH,
[ChainType.SVM]: ChainId.SOL,
[ChainType.UTXO]: ChainId.BTC,
};

0 comments on commit 9a18f1f

Please sign in to comment.