Skip to content

Commit fce8162

Browse files
committed
feat(tx-group): add script_valid param to build_raw_tx
Add a `script_valid` boolean parameter to the `build_raw_tx` method of TransactionGroup, defaulting to True. This allows specifying whether the script in the transaction is considered valid.
1 parent 9a9497d commit fce8162

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cardano_clusterlib/transaction_group.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ def build_raw_tx(
444444
treasury_donation: int | None = None,
445445
invalid_hereafter: int | None = None,
446446
invalid_before: int | None = None,
447+
script_valid: bool = True,
447448
src_addr_utxos: list[structs.UTXOData] | None = None,
448449
join_txouts: bool = True,
449450
destination_dir: itp.FileType = ".",
@@ -485,6 +486,7 @@ def build_raw_tx(
485486
treasury_donation: A donation to the treasury to perform (optional).
486487
invalid_hereafter: A last block when the transaction is still valid (optional).
487488
invalid_before: A first block when the transaction is valid (optional).
489+
script_valid: A bool indicating that the script is valid (True by default).
488490
src_addr_utxos: A list of UTxOs for the source address (optional).
489491
join_txouts: A bool indicating whether to aggregate transaction outputs
490492
by payment address (True by default).
@@ -547,6 +549,7 @@ def build_raw_tx(
547549
invalid_before=invalid_before,
548550
current_treasury_value=current_treasury_value,
549551
treasury_donation=treasury_donation,
552+
script_valid=script_valid,
550553
join_txouts=join_txouts,
551554
)
552555

0 commit comments

Comments
 (0)