Skip to content

Commit 6229861

Browse files
OttoAllmendingerllm-git
andcommitted
feat(abstract-utxo): remove type param from explainPsbt
Simplify the explainPsbt function by removing unnecessary type parameters since the types can be inferred from the UtxoPsbt. Issue: BG-59313 Co-authored-by: llm-git <[email protected]>
1 parent fd2e902 commit 6229861

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/abstract-utxo/src/transaction/fixedScript/explainTransaction.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ function getBip322MessageInfoAndVerify(psbt: bitgo.UtxoPsbt, network: utxolib.Ne
295295
* Decompose a raw psbt into useful information, such as the total amounts,
296296
* change amounts, and transaction outputs.
297297
*/
298-
export function explainPsbt<TNumber extends number | bigint, Tx extends bitgo.UtxoTransaction<bigint>>(
299-
psbt: bitgo.UtxoPsbt<Tx>,
298+
export function explainPsbt(
299+
psbt: bitgo.UtxoPsbt,
300300
params: {
301301
pubs?: bitgo.RootWalletKeys | string[];
302302
},
@@ -321,7 +321,7 @@ export function explainPsbt<TNumber extends number | bigint, Tx extends bitgo.Ut
321321

322322
const messages = getBip322MessageInfoAndVerify(psbt, network);
323323
const changeInfo = getChangeInfo(psbt);
324-
const tx = psbt.getUnsignedTx() as bitgo.UtxoTransaction<TNumber>;
324+
const tx = psbt.getUnsignedTx();
325325
const common = explainCommon(tx, { ...params, changeInfo }, network);
326326
const inputSignaturesCount = getPsbtInputSignaturesCount(psbt, params);
327327

0 commit comments

Comments
 (0)