File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1237,12 +1237,17 @@ def build_and_sign(
1237
1237
to the current slot number + the given offset (default 10_000).
1238
1238
A manually set ttl will always take precedence.
1239
1239
auto_required_signers (Optional[bool]): Automatically add all pubkeyhashes of transaction inputs
1240
- to required signatories (default only for Smart Contract transactions).
1240
+ and the given signers to required signatories (default only for Smart Contract transactions).
1241
1241
Manually set required signers will always take precedence.
1242
1242
1243
1243
Returns:
1244
1244
Transaction: A signed transaction.
1245
1245
"""
1246
+ # The given signers should be required signers if they weren't added yet
1247
+ if auto_required_signers and self .scripts and not self .required_signers :
1248
+ self .required_signers = [
1249
+ s .to_verification_key ().hash () for s in signing_keys
1250
+ ]
1246
1251
1247
1252
tx_body = self .build (
1248
1253
change_address = change_address ,
You can’t perform that action at this time.
0 commit comments