Skip to content

Commit

Permalink
[FIX] Using wrong type when extracting key from script
Browse files Browse the repository at this point in the history
  • Loading branch information
mccwdev committed Oct 23, 2023
1 parent ed3a9e4 commit ae354c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitcoinlib/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ def __init__(self, value, address='', public_hash=b'', public_key=b'', lock_scri
self.encoding = 'bech32'
self.public_hash = self.script.public_hash
if self.script.keys:
self.public_key = self.script.keys[0].public_hex
self.public_key = self.script.keys[0].public_byte
if self.script_type == 'p2tr':
self.witver = self.script.commands[0] - 80

Expand Down

0 comments on commit ae354c9

Please sign in to comment.