We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
<=
==
1 parent cf0af8a commit 3305710Copy full SHA for 3305710
cardano-api/test/cardano-api-test/Test/Cardano/Api/TxBody.hs
@@ -133,6 +133,10 @@ prop_simple_script_witness_count = H.property $ do
133
<$> genTxIn
134
witList <- H.forAll $ satisfyScript script
135
let witCount = fromIntegral $ Set.size witList
136
+ -- We use the inequality @<=@ instead of @==@ because 'estimateTransactionKeyWitnessCount'
137
+ -- calculates an upper bound on the number of key witnesses required to validate a transaction,
138
+ -- and the @witList@ contains a random subset that can potentially be used to satisfy the script.
139
+ -- So we only know it must be smaller or equal to the upper bound.
140
H.diff
141
(estimateTransactionKeyWitnessCount contentWithoutScript + witCount)
142
(<=)
0 commit comments