Skip to content

Commit

Permalink
fix conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcardon authored and edmundnoble committed May 1, 2024
1 parent da76975 commit 38c3469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Pact/Runtime/Capabilities.hs
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,10 @@ checkSigCaps sigs = go
wl <- checkWhiteListed
return $ M.filter (match (S.null autos) granted wl) sigs

match allowEmpty granted whitelist sigCaps =
match allowEmpty granted capsDonatingSigs sigCaps =
(S.null sigCaps && allowEmpty) ||
not (S.null (S.intersection granted sigCaps)) ||
(not (S.null whitelist) && all (\c -> S.member (_scName c) whitelist) sigCaps)
(not (S.null (S.intersection capsDonatingSigs (S.map _scName sigCaps))))

findFirstUserCall :: Eval e (Maybe QualifiedName)
findFirstUserCall = use evalCallStack >>= go
Expand Down

0 comments on commit 38c3469

Please sign in to comment.