From d1d8bc4ef620205e32be281a1dd033c49d004a45 Mon Sep 17 00:00:00 2001 From: klouskingsley <12490787+klouskingsley@users.noreply.github.com> Date: Fri, 10 Jan 2025 17:11:19 +0800 Subject: [PATCH] fix lint --- ts_src/transaction.ts | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/ts_src/transaction.ts b/ts_src/transaction.ts index 7ce979494..19b5d3eeb 100644 --- a/ts_src/transaction.ts +++ b/ts_src/transaction.ts @@ -375,8 +375,16 @@ export class Transaction { annex?: Uint8Array, codeseparatorPos?: number, ): Uint8Array { - const preimage = this.shPreimageForWitnessV1(inIndex, prevOutScripts, values, hashType, leafHash, annex, codeseparatorPos); - return sha256(preimage); + const preimage = this.shPreimageForWitnessV1( + inIndex, + prevOutScripts, + values, + hashType, + leafHash, + annex, + codeseparatorPos, + ); + return sha256(preimage); } shPreimageForWitnessV1( @@ -530,7 +538,11 @@ export class Transaction { // Extra zero byte because: // https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki#cite_note-19 - return tools.concat([bcrypto.TAGGED_HASH_PREFIXES.TapSighash, Uint8Array.from([0x00]), sigMsgWriter.end()]) + return tools.concat([ + bcrypto.TAGGED_HASH_PREFIXES.TapSighash, + Uint8Array.from([0x00]), + sigMsgWriter.end(), + ]); } hashForWitnessV0(