Skip to content

Commit dd2b7e4

Browse files
authored
Merge pull request spesmilo#2865 from SomberNight/get_preimage_script
fix unresolved variable
2 parents 60c1c6c + cbc35d9 commit dd2b7e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ def get_preimage_script(self, txin):
667667
pkh = bh2u(bitcoin.hash_160(bfh(pubkey)))
668668
return '76a9' + push_script(pkh) + '88ac'
669669
else:
670-
raise TypeError('Unknown txin type', _type)
670+
raise TypeError('Unknown txin type', txin['type'])
671671

672672
@classmethod
673673
def serialize_outpoint(self, txin):

0 commit comments

Comments
 (0)