Skip to content

Commit f42350b

Browse files
feat(abstract-utxo)!: default to wasm-utxo for all coins
Change defaultSdkBackend from a getter to a property with constant value 'wasm-utxo', removing network-based logic that favored utxolib for mainnet coins. BREAKING CHANGE: mainnet coins now default to wasm-utxo instead of utxolib Co-authored-by: llm-git <llm-git@ttll.de> Issue: BTC-2650
1 parent f1c7d97 commit f42350b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

modules/abstract-utxo/src/abstractUtxoCoin.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ import {
8181
getMainnetCoinName,
8282
getNetworkFromCoinName,
8383
isMainnetCoin,
84-
isUtxoCoinNameMainnet,
8584
UtxoCoinName,
8685
UtxoCoinNameMainnet,
8786
} from './names';
@@ -434,9 +433,7 @@ export abstract class AbstractUtxoCoin
434433
this.amountType = amountType;
435434
}
436435

437-
get defaultSdkBackend(): SdkBackend {
438-
return isUtxoCoinNameMainnet(this.name) ? 'utxolib' : 'wasm-utxo';
439-
}
436+
defaultSdkBackend: SdkBackend = 'wasm-utxo';
440437

441438
/**
442439
* @deprecated - will be removed when we drop support for utxolib

0 commit comments

Comments
 (0)