Skip to content

Commit 868d070

Browse files
OttoAllmendingerllm-git
andcommitted
feat(abstract-utxo): use coin name to get family
Replace getFamilyFromNetwork with getMainnetCoinName to directly determine the family name from the coin name without going through the network. Issue: BTC-2909 Co-authored-by: llm-git <llm-git@ttll.de>
1 parent e321560 commit 868d070

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/abstract-utxo/src/abstractUtxoCoin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ import {
7777
} from './transaction/descriptor/verifyTransaction';
7878
import { assertDescriptorWalletAddress, getDescriptorMapFromWallet, isDescriptorWallet } from './descriptor';
7979
import {
80-
getFamilyFromNetwork,
8180
getFullNameFromNetwork,
81+
getMainnetCoinName,
8282
getNetworkFromCoinName,
8383
UtxoCoinName,
8484
UtxoCoinNameMainnet,
@@ -397,7 +397,7 @@ export abstract class AbstractUtxoCoin
397397
}
398398

399399
getFamily(): UtxoCoinNameMainnet {
400-
return getFamilyFromNetwork(this.network);
400+
return getMainnetCoinName(this.name);
401401
}
402402

403403
getFullName(): string {

0 commit comments

Comments
 (0)