We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c6d484 commit 70ce3b3Copy full SHA for 70ce3b3
bitcoin/wallet.py
@@ -323,7 +323,7 @@ def from_scriptPubKey(cls, scriptPubKey):
323
if scriptPubKey.is_witness_v0_keyhash():
324
return cls.from_bytes(0, scriptPubKey[2:22])
325
else:
326
- raise CBitcoinAddressError('not a P2WSH scriptPubKey')
+ raise CBitcoinAddressError('not a P2WPKH scriptPubKey')
327
328
def to_scriptPubKey(self):
329
"""Convert an address to a scriptPubKey"""
0 commit comments