Skip to content

Commit

Permalink
small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
imalsogreg committed Nov 21, 2023
1 parent ad875c6 commit bc4b395
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Pact/Native/Keysets.hs
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ readKeySet' :: FunApp -> Text -> Eval e KeySet
readKeySet' i key = do
ks <- parseMsgKey i "read-keyset" key
whenExecutionFlagSet FlagEnforceKeyFormats $ do
ifExecutionFlagSet FlagDisablePact410
(enforceKeyFormats (const $ evalError' i "Invalid keyset") [ed25519HexFormat] ks)
(enforceKeyFormats (const $ evalError' i "Invalid keyset") [ed25519HexFormat, webAuthnFormat] ks)
formats <- ifExecutionFlagSet' FlagDisablePact410 [ed25510HexFormat] [ed25519HexFormat, webAuthnFormat]

Check failure on line 72 in src/Pact/Native/Keysets.hs

View workflow job for this annotation

GitHub Actions / build (9.6, 3.10, ubuntu-20.04, true, +build-tool)

Variable not in scope: ed25510HexFormat :: PublicKeyText -> Bool

Check failure on line 72 in src/Pact/Native/Keysets.hs

View workflow job for this annotation

GitHub Actions / build (9.6, 3.10, ubuntu-22.04, true, +build-tool)

Variable not in scope: ed25510HexFormat :: PublicKeyText -> Bool

Check failure on line 72 in src/Pact/Native/Keysets.hs

View workflow job for this annotation

GitHub Actions / build (9.6, 3.10, macOS-latest, true, +build-tool)

Variable not in scope: ed25510HexFormat :: PublicKeyText -> Bool

Check failure on line 72 in src/Pact/Native/Keysets.hs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 9.6, 3.10, true, -build-tool)

Variable not in scope: ed25510HexFormat :: PublicKeyText -> Bool
(enforceKeyFormats (const $ evalError' i "Invalid keyset") formats ks)

pure ks

Expand Down

0 comments on commit bc4b395

Please sign in to comment.