Skip to content

Commit

Permalink
Release pact 4.9 (#1305)
Browse files Browse the repository at this point in the history
* fix tests for info removal to be turned on post 4.9

* 4.9 changelog

* fix tests to use 4.9
  • Loading branch information
jmcardon committed Oct 2, 2023
1 parent 445af04 commit 0c9cfe5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
4.9.0
---
### Bugfixes
- Pact value infos fixed (#1287)

### Features
- Webauthn support (#1193)


4.8.0
---
### Bugfixes
Expand Down
2 changes: 1 addition & 1 deletion src/Pact/Eval.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ enforcePactValue :: Pretty n => (Term n) -> Eval e PactValue
enforcePactValue t = case toPactValue t of
Left s -> evalError' t $ "Only value-level terms permitted: " <> pretty s
Right v -> do
elide <- ifExecutionFlagSet' FlagDisablePact48 id stripAllPactValueInfo
elide <- ifExecutionFlagSet' FlagDisablePact49 id stripAllPactValueInfo
return (elide v)

reduceApp :: App (Term Ref) -> Eval e (Term Name)
Expand Down
2 changes: 1 addition & 1 deletion tests/pact/caps.repl
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@
(continue-pact 1))

(begin-tx)
(env-exec-config ["DisablePact48"])
(env-exec-config ["DisablePact49"])

; pact 48 caps
(interface ops
Expand Down
2 changes: 1 addition & 1 deletion tests/pact/hash.repl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(expect "hash roundtrip" (hash "hello") (tx-hash))

(begin-tx)
(env-exec-config ["DisablePact48"])
(env-exec-config ["DisablePact49"])
(interface iface
(defun f:bool (a:module{iface}))
)
Expand Down
2 changes: 1 addition & 1 deletion tests/pact/principals.repl
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@
(create-table mstbl)

; Test principal caps created pre-info eliding
(env-exec-config ["DisablePact48"])
(env-exec-config ["DisablePact49"])
(write-principal 'a (create-principal (create-capability-guard (test-cap m))))

(write-principal 'b (create-principal (create-capability-guard (test-cap m))))
Expand Down

0 comments on commit 0c9cfe5

Please sign in to comment.