Skip to content

Commit

Permalink
BuiltinByteString literals aren't UTF8 encoded.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unisay committed Nov 12, 2024
1 parent c23a4d8 commit 0f08f16
Show file tree
Hide file tree
Showing 48 changed files with 334 additions and 187 deletions.
1 change: 1 addition & 0 deletions .hlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@
- ignore: {name: Use first, within: [UntypedPlutusCore.Evaluation.Machine.Cek]}
- ignore: {name: Redundant if, within: [PlutusLedgerApi.V1.Value, PlutusLedgerApi.V1.Data.Value]}
- ignore: {name: Replace case with maybe, within: [PlutusLedgerApi.V1.Value, PlutusLedgerApi.V1.Data.Value]}
- ignore: {name: Use bimap, within: [PlutusTx.Builtins.HasOpaque]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
({cpu: 76521974
| mem: 618})
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(program
1.0.0
(con
bls12_381_G1_element
0x8bd61864f519748032551e42e0ac417fd828f079454e3e3c9891c5c29ed7f10bdecc046854e3931cb7002779bd76d71f
)
)
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 260294
| mem: 601})
({cpu: 260453
| mem: 602})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 423110
| mem: 1625})
({cpu: 260453
| mem: 602})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 430941
({cpu: 562877
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 430941
({cpu: 562877
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 732509
({cpu: 1769149
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 732509
({cpu: 1769149
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 808086
({cpu: 958870
| mem: 1402})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 808086
({cpu: 958870
| mem: 1402})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 412093
({cpu: 487485
| mem: 801})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 449789
({cpu: 638269
| mem: 806})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 940022
({cpu: 1486614
| mem: 1412})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 449789
({cpu: 638269
| mem: 806})
7 changes: 2 additions & 5 deletions plutus-core/cost-model/test/TH.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@
restrictions.
-}

{-# LANGUAGE TemplateHaskell #-}

module TH (genTest)
where
module TH (genTest) where

import Data.Char (toUpper)
import Language.Haskell.TH

toUpper1 :: String -> String
toUpper1 [] = error "empty string in toUpper1"
toUpper1 (c:cs) = (toUpper c):cs
toUpper1 (c:cs) = toUpper c : cs

mkIterApp :: Exp -> [Exp] -> Exp
mkIterApp = foldl AppE
Expand Down
1 change: 1 addition & 0 deletions plutus-tx-plugin/plutus-tx-plugin.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ test-suite plutus-tx-plugin-tests
Budget.Spec
Budget.WithGHCOptimisations
Budget.WithoutGHCOptimisations
ByteStringLiterals.Spec
IntegerLiterals.NoStrict.NegativeLiterals.Spec
IntegerLiterals.NoStrict.NoNegativeLiterals.Spec
IntegerLiterals.Strict.NegativeLiterals.Spec
Expand Down
Loading

0 comments on commit 0f08f16

Please sign in to comment.