Skip to content

Commit

Permalink
Use 'UnliftWhenSaturated' instead of 'UnliftImmediately'
Browse files Browse the repository at this point in the history
  • Loading branch information
effectfully committed Mar 2, 2022
1 parent 3f5e5d0 commit 19656b6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
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 @@ -83,7 +83,7 @@ data UnliftMode
| UnliftWhenSaturated

unliftMode :: UnliftMode
unliftMode = UnliftImmediately
unliftMode = UnliftWhenSaturated

-- | 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 @@
(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") ])
(Right [
[ (force (builtin ifThenElse)) (con string "11 <= 22") ]
(con string "\172(11 <= 22)")
])
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(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") ])
(Right [
[ (force (builtin ifThenElse)) (con string "11 <= 22") ]
(con string "\172(11 <= 22)")
])

0 comments on commit 19656b6

Please sign in to comment.