Skip to content

Commit 93f72ea

Browse files
OttoAllmendingerllm-git
andcommitted
feat(abstract-utxo): remove threshold from GenerateAddressOptions
Remove redundant threshold parameter since it is fixed at 2 for our 2-of-3 multisig scripts. Also make GenerateFixedScriptAddressOptions interface internal since it's only used within this file. Issue: BTC-2652 Co-authored-by: llm-git <[email protected]>
1 parent c6755c0 commit 93f72ea

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

modules/abstract-utxo/src/address/fixedScript.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,13 @@ export interface FixedScriptAddressCoinSpecific {
2525

2626
export interface GenerateAddressOptions {
2727
addressType?: ScriptType2Of3;
28-
threshold?: number;
2928
chain?: number;
3029
index?: number;
3130
segwit?: boolean;
3231
bech32?: boolean;
3332
}
3433

35-
export interface GenerateFixedScriptAddressOptions extends GenerateAddressOptions {
34+
interface GenerateFixedScriptAddressOptions extends GenerateAddressOptions {
3635
format?: CreateAddressFormat;
3736
keychains: { pub: string }[];
3837
}
@@ -169,7 +168,6 @@ export function assertFixedScriptWalletAddress(
169168
format,
170169
addressType: addressType as ScriptType2Of3,
171170
keychains,
172-
threshold: 2,
173171
chain,
174172
index,
175173
});

0 commit comments

Comments
 (0)