Skip to content

Commit

Permalink
Fix CDDL representing CostModels in Conway.
Browse files Browse the repository at this point in the history
Reflects #4390
  • Loading branch information
nc6 committed Jul 25, 2024
1 parent 37ac1df commit 96d6217
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eras/conway/impl/src/Cardano/Ledger/Conway/CDDL.hs
Original file line number Diff line number Diff line change
Expand Up @@ -658,10 +658,10 @@ costmdls =
"The format for costmdls is flexible enough to allow adding Plutus\n built-ins and language versions in the future."
$ "costmdls"
=:= mp
[ opt $ idx 0 ==> arr [166 <+ a VInt] -- Plutus v1, only 166 integers are used, but more are accepted (and ignored)
, opt $ idx 1 ==> arr [175 <+ a VInt] -- Plutus v2, only 175 integers are used, but more are accepted (and ignored)
, opt $ idx 2 ==> arr [223 <+ a VInt] -- Plutus v3, only 223 integers are used, but more are accepted (and ignored)
, opt $ idx 3 ==> arr [a VInt] -- Any 8-bit unsigned number can be used as a key.
[ opt $ idx 0 ==> arr [0 <+ a VInt] -- Plutus v1, only 166 integers are used, but more are accepted (and ignored)
, opt $ idx 1 ==> arr [0 <+ a VInt] -- Plutus v2, only 175 integers are used, but more are accepted (and ignored)
, opt $ idx 2 ==> arr [0 <+ a VInt] -- Plutus v3, only 223 integers are used, but more are accepted (and ignored)
, opt $ asKey (3 ... 255) ==> arr [0 <+ a VInt] -- Any 8-bit unsigned number can be used as a key.
]

transaction_metadatum :: Rule
Expand Down

0 comments on commit 96d6217

Please sign in to comment.