-
Notifications
You must be signed in to change notification settings - Fork 214
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
ContractModel: Extend the Escrow contract model #296
ContractModel: Extend the Escrow contract model #296
Conversation
Do you mind having a quick look at this? @sjoerdvisscher |
plutus-use-cases/test/Spec/Escrow.hs
Outdated
&& Nothing /= (s ^. contractState . contributions . at w) | ||
Pay w v -> Nothing == s ^. contractState . contributions . at w | ||
Pay w v -> (True || Nothing == s ^. contractState . contributions . at w) -- disabled |
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.
Why is this disabled?
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.
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.
It's disabled so that we can also test paying the amount due in several installments. The contract allows that, so there's no reason not to test it.
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.
(should have removed the condition altogether, of course).
Extend Escrow tests, add negative testing Add NoLockedFunds to Escrow tests
96ef2b8
to
284c6f2
Compare
@sjoerdvisscher I think this is ready to merge now :) |
Extend Escrow tests, add negative testing
Add NoLockedFunds to Escrow tests
Pre-submit checklist: