Skip to content

Commit

Permalink
fix: P2TR has version 1 segwit version
Browse files Browse the repository at this point in the history
  • Loading branch information
reednaa committed Aug 12, 2024
1 parent 9e9d140 commit aba79f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/BtcScript.sol
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,6 @@ library BtcScript {
}

function scriptP2TR(bytes32 witnessProgram) internal pure returns(bytes memory) {
return bytes.concat(OP_0, PUSH_32, witnessProgram);
return bytes.concat(OP_1, PUSH_32, witnessProgram);
}
}

0 comments on commit aba79f5

Please sign in to comment.