Skip to content

Commit

Permalink
fix: p2sh should be p2wsh instead
Browse files Browse the repository at this point in the history
  • Loading branch information
reednaa committed Sep 17, 2024
1 parent c5fc43f commit 81e5566
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 @@ -172,7 +172,7 @@ library BtcScript {
if (addressType == AddressType.P2WPKH) {
return scriptP2WPKH(bytes20(implementationHash));
}
if (addressType == AddressType.P2SH) {
if (addressType == AddressType.P2WSH) {
return scriptP2WSH(implementationHash);
}
if (addressType == AddressType.P2TR) {
Expand Down

0 comments on commit 81e5566

Please sign in to comment.