Skip to content

Commit

Permalink
fix permutted hash getter for Qi
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoacosta74 committed Oct 16, 2024
1 parent 208b80a commit 095346e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transaction/qi-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class QiTransaction extends AbstractTransaction<string> 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;
Expand Down

0 comments on commit 095346e

Please sign in to comment.