Skip to content

Theorem failures in dispenser contract #1231

Answered by jeapostrophe
NWBY asked this question in Q&A
Discussion options

You must be logged in to vote

For your first issue, you have to get the balance to be zero at the end. You have not yet made it so multiple buyers can do anything, so it is a bit misleading to try and fix this until you've completed what you hope the program will do. At the moment, you could return the unspent amounts to the seller.

For the second issue, the Buyer is not assumeing that those computations are correct. You could fix this by adding them as assumes, but you will probably rewrite this program to use a loop (via parallelReduce) and then you'll probably want to have an API call (with .api_) and then it will be more natural to use check

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jeapostrophe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants