Skip to content

Commit

Permalink
Remove ErrPassphraseSchemeUnsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
HeinrichApfelmus committed Feb 15, 2024
1 parent 63d244e commit e4d771c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ instance NFData WalletPassphraseInfo
-- | Indicate a failure when checking for a given 'Passphrase' match
data ErrWrongPassphrase
= ErrWrongPassphrase
| ErrPassphraseSchemeUnsupported PassphraseScheme
deriving stock (Generic, Show, Eq)

instance NFData ErrWrongPassphrase
6 changes: 0 additions & 6 deletions lib/wallet/api/http/Cardano/Wallet/Api/Http/Server/Error.hs
Original file line number Diff line number Diff line change
Expand Up @@ -349,12 +349,6 @@ instance IsServerError ErrWithRootKey where
, ": "
, toText wid
]
ErrWithRootKeyWrongPassphrase wid (ErrPassphraseSchemeUnsupported s) ->
apiError err501 WrongEncryptionPassphrase $ mconcat
[ "This build is not compiled with support for the "
, toText s <> " scheme used by the given wallet: "
, toText wid
]

instance IsServerError ErrSignPayment where
toServerError = \case
Expand Down

0 comments on commit e4d771c

Please sign in to comment.