Skip to content

Commit f95e8ed

Browse files
committed
Use _input_vkey_hashes
1 parent bf5d83a commit f95e8ed

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pycardano/txbuilder.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -923,16 +923,14 @@ def build(
923923
# Collect all signatories from explicitly defined
924924
# transaction inputs and collateral inputs, and input addresses
925925
input_addresses = [
926-
i.output.address for i in self.inputs + self.collaterals
927-
] + [
928926
Address.from_primitive(a) if isinstance(a, str) else a
929927
for a in self.input_addresses
930928
]
931929
required_signers = set(
932930
a.payment_part
933931
for a in input_addresses
934932
if isinstance(a.payment_part, VerificationKeyHash)
935-
)
933+
) | self._input_vkey_hashes()
936934
self.required_signers = list(required_signers)
937935

938936
selected_utxos = []

0 commit comments

Comments
 (0)