Skip to content

Commit ebc85bf

Browse files
committed
Merge #213: Fix error message for invalid P2WSH scriptPubKey.
70ce3b3 Fix error message for invalid P2WSH scriptPubKey. (Jonathan Zernik) Pull request description: The error message should say 'not a P2WPKH scriptPubKey' Tree-SHA512: 661080a7a5832701803f86d707921c3d504173a24445296e35e6da785f25330839f77f854d7c4db3b7674d38623d67b2bb686ea1590c0b83877b9b98035b1726
2 parents 0c6d484 + 70ce3b3 commit ebc85bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitcoin/wallet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def from_scriptPubKey(cls, scriptPubKey):
323323
if scriptPubKey.is_witness_v0_keyhash():
324324
return cls.from_bytes(0, scriptPubKey[2:22])
325325
else:
326-
raise CBitcoinAddressError('not a P2WSH scriptPubKey')
326+
raise CBitcoinAddressError('not a P2WPKH scriptPubKey')
327327

328328
def to_scriptPubKey(self):
329329
"""Convert an address to a scriptPubKey"""

0 commit comments

Comments
 (0)