Skip to content

Commit 1c6beaa

Browse files
Expand on comment
1 parent ce41194 commit 1c6beaa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rust/src/witness_builder.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ pub struct TransactionWitnessSetBuilder {
145145
plutus_data: HashMap<DataHash, PlutusData>,
146146
redeemers: HashMap<RedeemerWitnessKey, Redeemer>,
147147

148-
// witnesses that need to be added for the build function to succeed
148+
/// witnesses that need to be added for the build function to succeed
149+
/// this allows checking that witnesses are present at build time (instead of when submitting to a node)
150+
/// This is useful for APIs that can keep track of which witnesses will be required (like transaction builders)
149151
required_wits: RequiredWitnessSet,
150152
}
151153

0 commit comments

Comments
 (0)