Skip to content

Commit

Permalink
Fix inaccuracy in generating excessive refScript size in LedgerSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
teodanciu committed Jul 1, 2024
1 parent a2a10e8 commit 553ed84
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ spec =
let script :: Script era
script = fromPlutusScript plutusScript
size = originalBytesSize script
(q, r) = maxRefScriptSizePerTx `quotRem` size
n = q + signum r
n = maxRefScriptSizePerTx `div` size + 1
txIns <- replicateM n (produceRefScript script)
let tx :: Tx era
tx = mkBasicTx (mkBasicTxBody & referenceInputsTxBodyL .~ Set.fromList txIns)
Expand Down

0 comments on commit 553ed84

Please sign in to comment.