Skip to content
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

[Builtins] No-legacy unlifting #4510

Closed
wants to merge 11 commits into from
Prev Previous commit
Next Next commit
Revert "Use 'UnliftWhenSaturated' instead of 'UnliftImmediately'"
This reverts commit 19656b6.
  • Loading branch information
effectfully committed Mar 21, 2022
commit 4388d6c64c5784d06d9c9e3acf2e27ee017f7ccf
2 changes: 1 addition & 1 deletion plutus-core/plutus-core/src/PlutusCore/Builtin/Runtime.hs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ data UnliftMode
| UnliftWhenSaturated

unliftMode :: UnliftMode
unliftMode = UnliftWhenSaturated
unliftMode = UnliftImmediately

-- | Instantiate a 'BuiltinMeaning' given denotations of built-in functions and a cost model.
toBuiltinRuntime :: cost -> BuiltinMeaning val cost -> BuiltinRuntime val
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(Right [
[ (force (builtin ifThenElse)) (con string "11 <= 22") ]
(con string "\172(11 <= 22)")
])
(Left An error has occurred: error:
Could not unlift a builtin:
Type mismatch: expected: bool; actual: string
Caused by: [ (force (builtin ifThenElse)) (con string "11 <= 22") ])
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(Right [
[ (force (builtin ifThenElse)) (con string "11 <= 22") ]
(con string "\172(11 <= 22)")
])
(Left An error has occurred: error:
Could not unlift a builtin:
Type mismatch: expected: bool; actual: string
Caused by: [ (force (builtin ifThenElse)) (con string "11 <= 22") ])