Skip to content

Commit

Permalink
fix(txbuilder): don't include empty redeemers in Conway txs (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
yHSJ authored Oct 25, 2024
1 parent 211674d commit 0dd9bcd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pallas-txbuilder/src/conway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,11 @@ impl BuildConway for StagingTransaction {
plutus_v2_script: NonEmptySet::from_vec(plutus_v2_script),
plutus_v3_script: NonEmptySet::from_vec(plutus_v3_script),
plutus_data: NonEmptySet::from_vec(plutus_data),
redeemer: Some(witness_set_redeemers),
redeemer: if redeemers.is_empty() {
None
} else {
Some(witness_set_redeemers)
},
},
success: true, // TODO
auxiliary_data: None.into(), // TODO
Expand Down

0 comments on commit 0dd9bcd

Please sign in to comment.