fixes #2858
This commit is contained in:
parent
afa1a4d22a
commit
c50a460395
|
@ -591,6 +591,8 @@ class Transaction:
|
||||||
return addr
|
return addr
|
||||||
elif output_type == TYPE_ADDRESS:
|
elif output_type == TYPE_ADDRESS:
|
||||||
return bitcoin.address_to_script(addr)
|
return bitcoin.address_to_script(addr)
|
||||||
|
elif output_type == TYPE_PUBKEY:
|
||||||
|
return addr
|
||||||
else:
|
else:
|
||||||
raise TypeError('Unknown output type')
|
raise TypeError('Unknown output type')
|
||||||
return script
|
return script
|
||||||
|
|
Loading…
Reference in New Issue