Skip to content

Commit ed26128

Browse files
OttoAllmendingerllm-git
andcommitted
feat(abstract-utxo): enable legacy tx format for mainnet
Changes the supportedTxFormats property from readonly to mutable and sets legacy format support based on network type. Legacy format is now enabled for mainnet networks while remaining disabled for testnet. Issue: BTC-0 Co-authored-by: llm-git <llm-git@ttll.de>
1 parent 5c97d43 commit ed26128

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
@@ -421,9 +421,9 @@ export abstract class AbstractUtxoCoin
421421

422422
public readonly amountType: 'number' | 'bigint';
423423

424-
protected readonly supportedTxFormats: { readonly psbt: boolean; readonly legacy: boolean } = {
424+
protected supportedTxFormats: { psbt: boolean; legacy: boolean } = {
425425
psbt: true,
426-
legacy: false,
426+
legacy: this.isMainnet(),
427427
};
428428

429429
protected constructor(bitgo: BitGoBase, amountType: 'number' | 'bigint' = 'number') {

0 commit comments

Comments
 (0)