-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement some missing API handlers for the wallets endpoints #180
Conversation
@@ -353,6 +386,22 @@ prop_createWalletTwice (key@(PrimaryKey wid), cp, meta) = | |||
runExceptT (createWallet db key cp meta) `shouldReturn` Right () | |||
runExceptT (createWallet db key cp meta) `shouldReturn` Left err | |||
|
|||
-- | Trying to create a same wallet twice should yield an error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose should be Trying to remove the same wallet twice...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed 👍 , wrong copy-pasting 😬
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW. Perhaps the case create wallet twice could be added here also? Or maybe it is not handled on the DB layer (I mean the fact the same wallet cannot be created multiple times)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh wait, it's already there :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 👍
@piotr-iohk Merging this, I've fixed the typo in a next incoming PR 👍 |
Issue Number
#96
Overview
Comments