Skip to content

Commit

Permalink
feat: fix grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
reednaa committed Feb 24, 2024
1 parent 2c451e8 commit 644b50d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/library/BtcProof.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ library BtcProof {
}

/**
* @dev Validates that a given transfer of ordinal(s) under a given block hash..
* @dev Validates that a given transfer of ordinal(s) appears under a given block hash.
*
* This verifies all of the following:
* 1. Raw transaction contains a specific input (at index 0) that pays more than X to specific output (at index 0).
Expand Down Expand Up @@ -118,7 +118,7 @@ library BtcProof {
// Check if correct input transaction is used.
if (txInId != txInput.prevTxID) revert InvalidTxInHash(txInId, txInput.prevTxID);
// Check if correct index of that transaction is used.
if (txInPrevTxIndex == txInput.prevTxIndex) revert InvalidTxInIndex(txInPrevTxIndex, txInput.prevTxIndex);
if (txInPrevTxIndex != txInput.prevTxIndex) revert InvalidTxInIndex(txInPrevTxIndex, txInput.prevTxIndex);

BitcoinTxOut memory txo = parsedTx.outputs[0];
// if the length are less than 32, then use bytes32 to compare.
Expand Down

0 comments on commit 644b50d

Please sign in to comment.