Skip to content

Commit

Permalink
Add script to Input object
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryp Toon committed Jul 3, 2024
1 parent 6b4a9d0 commit 150e99e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bitcoinlib/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ def __init__(self, prev_txid, output_n, keys=None, signatures=None, public_hash=
script = Script.parse_bytes(self.unlocking_script, is_locking=False, strict=strict)
self.keys = script.keys
self.signatures = script.signatures
self.script = script
if len(self.signatures):
self.hash_type = self.signatures[0].hash_type
sigs_required = script.sigs_required
Expand Down

0 comments on commit 150e99e

Please sign in to comment.