-
Notifications
You must be signed in to change notification settings - Fork 157
Update plutus to 1.13 #3738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update plutus to 1.13 #3738
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -5,18 +5,17 @@ import Cardano.Ledger.Alonzo.Language (BinaryPlutus (..), Language (..), Plutus | |||||
import Cardano.Ledger.Alonzo.Scripts (AlonzoScript (PlutusScript), CostModel, mkCostModel) | ||||||
import Data.ByteString.Short (pack) | ||||||
import Data.Either (fromRight) | ||||||
import qualified Data.Map as Map | ||||||
import PlutusLedgerApi.Test.EvaluationContext (costModelParamsForTesting) | ||||||
import PlutusLedgerApi.Test.V3.EvaluationContext (costModelParamsForTesting) | ||||||
|
||||||
testingCostModelV1 :: CostModel | ||||||
testingCostModelV1 = | ||||||
fromRight (error "testingCostModelV1 is not well-formed") $ | ||||||
mkCostModel PlutusV1 (0 <$ Map.elems costModelParamsForTesting) | ||||||
mkCostModel PlutusV1 (0 <$ costModelParamsForTesting) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are now plutus version specific testing functions, which shoul dbe used instead of all using PlutusV3 version
Suggested change
|
||||||
|
||||||
testingCostModelV2 :: CostModel | ||||||
testingCostModelV2 = | ||||||
fromRight (error "testingCostModelV2 is not well-formed") $ | ||||||
mkCostModel PlutusV2 (0 <$ Map.elems costModelParamsForTesting) | ||||||
mkCostModel PlutusV2 (0 <$ costModelParamsForTesting) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here:
Suggested change
|
||||||
|
||||||
{- Preproceesed Plutus Script | ||||||
guessTheNumber'2_0 :: PlutusTx.Builtins.Internal.BuiltinData -> | ||||||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.