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;