From 095346e337d1208d77f26627262b7645dc93c193 Mon Sep 17 00:00:00 2001 From: Alejo Acosta Date: Tue, 15 Oct 2024 19:42:50 -0300 Subject: [PATCH] fix permutted hash getter for Qi --- src/transaction/qi-transaction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transaction/qi-transaction.ts b/src/transaction/qi-transaction.ts index ac7aa0f5..817c668f 100644 --- a/src/transaction/qi-transaction.ts +++ b/src/transaction/qi-transaction.ts @@ -121,7 +121,7 @@ export class QiTransaction extends AbstractTransaction implements QiTran const prevTxHash = this.txInputs[0].txhash; const prevTxHashBytes = getBytes(prevTxHash); - const origin = prevTxHashBytes[1]; // Get the second byte (0-based index) + const origin = prevTxHashBytes[2]; // Get the third byte (0-based index) hashBuffer[0] = origin; hashBuffer[1] |= 0x80; hashBuffer[2] = origin;