Skip to content

Commit 95a9ca1

Browse files
committed
Use a bigger script in test that checks reference script size
so that we don't need so many txins to push the transaction size over the allowed maximum
1 parent 5b66bbb commit 95a9ca1

File tree

1 file changed

+2
-2
lines changed
  • eras/conway/impl/testlib/Test/Cardano/Ledger/Conway/Imp

1 file changed

+2
-2
lines changed

eras/conway/impl/testlib/Test/Cardano/Ledger/Conway/Imp/LedgerSpec.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ import Test.Cardano.Ledger.Conway.ImpTest
3333
import Test.Cardano.Ledger.Core.Rational (IsRatio (..))
3434
import Test.Cardano.Ledger.Imp.Common
3535
import Test.Cardano.Ledger.Plutus.Examples (
36-
alwaysFailsWithDatum,
3736
alwaysSucceedsNoDatum,
37+
purposeIsWellformedNoDatum,
3838
)
3939

4040
spec ::
@@ -48,7 +48,7 @@ spec = do
4848
it "TxRefScriptsSizeTooBig" $ do
4949
-- we use here the largest script we currently have as many times as necessary to
5050
-- trigger the predicate failure
51-
Just plutusScript <- pure $ mkPlutusScript @era $ alwaysFailsWithDatum SPlutusV3
51+
Just plutusScript <- pure $ mkPlutusScript @era $ purposeIsWellformedNoDatum SPlutusV3
5252
let script :: Script era
5353
script = fromPlutusScript plutusScript
5454
size = originalBytesSize script

0 commit comments

Comments
 (0)