Skip to content

Commit 48ae7ff

Browse files
committed
Remove input_addresses from tx_builder required signers
1 parent bd6b1c4 commit 48ae7ff

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

pycardano/txbuilder.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -922,16 +922,7 @@ def build(
922922
) and self.required_signers is None:
923923
# Collect all signatories from explicitly defined
924924
# transaction inputs and collateral inputs, and input addresses
925-
input_addresses = [
926-
Address.from_primitive(a) if isinstance(a, str) else a
927-
for a in self.input_addresses
928-
]
929-
required_signers = self._input_vkey_hashes() | set(
930-
a.payment_part
931-
for a in input_addresses
932-
if isinstance(a.payment_part, VerificationKeyHash)
933-
)
934-
self.required_signers = list(required_signers)
925+
self.required_signers = list(self._input_vkey_hashes())
935926

936927
selected_utxos = []
937928
selected_amount = Value()

test/pycardano/test_txbuilder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,16 +330,16 @@ def test_tx_builder_mint_multi_asset(chain_context):
330330
[
331331
sender_address.to_primitive(),
332332
[
333-
5809683,
333+
5811003,
334334
{b"1111111111111111111111111111": {b"Token1": 1, b"Token2": 2}},
335335
],
336336
],
337337
],
338-
2: 190317,
338+
2: 188997,
339339
3: 123456789,
340340
8: 1000,
341341
9: mint,
342-
14: [sender_address.payment_part.to_primitive()],
342+
14: [],
343343
}
344344

345345
assert expected == tx_body.to_primitive()

0 commit comments

Comments
 (0)