Skip to content

Commit

Permalink
Namecoin: Fix get_preimage_script for P2PK inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Feb 17, 2020
1 parent 1141bf4 commit 0b3d418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electrum_nmc/electrum/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ def get_preimage_script(cls, txin: 'PartialTxInput') -> str:
return bitcoin.pubkeyhash_to_p2pkh_script(pkh)
elif txin.script_type == 'p2pk':
pubkey = pubkeys[0]
result = bitcoin.public_key_to_p2pk_script(pubkey)
return bitcoin.public_key_to_p2pk_script(pubkey)
else:
raise UnknownTxinType(f'cannot construct preimage_script for txin_type: {txin.script_type}')

Expand Down

0 comments on commit 0b3d418

Please sign in to comment.