Skip to content

Commit 70ce3b3

Browse files
author
Jonathan Zernik
committed
Fix error message for invalid P2WSH scriptPubKey.
1 parent 0c6d484 commit 70ce3b3

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)