Skip to content

Commit

Permalink
Update pact-core/Pact/Core/IR/Eval/RawBuiltin.hs
Browse files Browse the repository at this point in the history
Co-authored-by: rsoeldner <[email protected]>
  • Loading branch information
0xd34df00d and rsoeldner authored Dec 1, 2023
1 parent 5d91897 commit f7fc4bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pact-core/Pact/Core/IR/Eval/RawBuiltin.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ defineKeySet' info cont handler env ksname newKs = do
let writeKs = do
liftDbFunction info (_pdbWrite pdb Write DKeySets ksn newKs)
returnCEKValue cont handler (VString "Keyset write success")
liftDbFunction info (_pdbRead pdb DKeySets ksn) >>= \case
liftDbFunction info (readKeyset ksn) >>= \case
Just oldKs -> do
cond <- enforceKeyset oldKs
if cond then writeKs
Expand Down

0 comments on commit f7fc4bf

Please sign in to comment.