Skip to content
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

Merged
merged 2 commits into from
Apr 25, 2019

Conversation

KtorZ
Copy link
Member

@KtorZ KtorZ commented Apr 25, 2019

Issue Number

#96

Overview

  • I have extended wallet layer and API layer with 'listWallets' and 'deleteWallet'
  • I have added proper tests to the DB layer to cover for the new 'deleteWallet' command

Comments

@KtorZ KtorZ requested a review from piotr-iohk April 25, 2019 09:42
@KtorZ KtorZ self-assigned this Apr 25, 2019
@@ -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
Copy link
Contributor

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...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed 👍 , wrong copy-pasting 😬

Copy link
Contributor

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)?

Copy link
Contributor

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 :)

Copy link
Contributor

@piotr-iohk piotr-iohk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@KtorZ
Copy link
Member Author

KtorZ commented Apr 25, 2019

@piotr-iohk Merging this, I've fixed the typo in a next incoming PR 👍

@KtorZ KtorZ merged commit 3a6143b into master Apr 25, 2019
@KtorZ KtorZ deleted the KtorZ/96/missing-api-handlers-for-wallets branch April 25, 2019 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants