-
Notifications
You must be signed in to change notification settings - Fork 217
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
Some small fixes to DB.StateMachine
module.
#349
Conversation
The `Mock` data type has the convention that each map has a plural name based on the type of value held within the map. For consistency with this convention, the map of wallet ids to private keys should also have a plural name. Similarly, we can use `pks` to represent a map, but `pk` to represent a value within a map.
It previously returned `CreateWalletTwice`, but it should return `CreateThreeWallets`.
This function is always called with the same arguments, so we can safely inline these arguments.
@@ -453,7 +453,6 @@ lockstep m@(Model _ ws) c (At resp) = Event | |||
Generator | |||
-------------------------------------------------------------------------------} | |||
|
|||
-- NOTE 'concat' reads better. |
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.
Note that this comment wasn't obsolete. It gives a justification for disabling hlint
below. Hlint suggests to replace use of concat
with ++
, but concat
reads better :)
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.
cc @jonathanknowles ^^
Issue Number
Issue #154
PR #259
Overview
This PR makes a number of small fixes to the
Cardano.Wallet.DB.StateMachine
module:createThreeWallets
.Mock
.readAfterDelete
(since it was always called with the same arguments).