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

pre-condition causes fatal error if --skip-verifier #459

Open
wmanshu opened this issue Aug 19, 2019 · 1 comment
Open

pre-condition causes fatal error if --skip-verifier #459

wmanshu opened this issue Aug 19, 2019 · 1 comment

Comments

@wmanshu
Copy link

wmanshu commented Aug 19, 2019

Fatal error: Arrays and dictionaries cannot be defined as local variables yet. when I run with --skip-verifier however, it passes the verification test if NOT skip the verifier

public func withdrawReward()
  mutates (gotReward, Wei.rawValue)
  pre (gotReward[caller] == false) 
  {
    // assert (gotReward[caller] == false)
    let toSend: Wei = Wei(source: &balance, amount: prize)
    gotReward[caller] = true
    // send(caller, &toSend)
  }

I suppose I posted a similar error before?

@wmanshu wmanshu changed the title pre-condition causes fatal error if pre-condition causes fatal error if --skip-verifier Aug 19, 2019
@wmanshu
Copy link
Author

wmanshu commented Aug 23, 2019

This only happens when preconditions contain global variables

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

No branches or pull requests

1 participant