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

Brackets do not match in verification shows nothing in terminal #469

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

Brackets do not match in verification shows nothing in terminal #469

wmanshu opened this issue Aug 23, 2019 · 1 comment

Comments

@wmanshu
Copy link

wmanshu commented Aug 23, 2019

  public func approve(spender: Address, value: Int)
  mutates (allowances)
  post (value >= 0 ==> allowances[caller][spender] == value)
  post (value >= 0 ==> forall (a1, Address, dictContains(allowances, a1) ==> forall(a2, Address, dictContains(allowances[a1], a2) ==> allowances[a1][a2] == prev(allowances[a1][a2]) || (a1 == caller && a2 == spender)))
  {
    allowances[caller][spender] = value
  }

In this example, I'm missing a bracket at the end of the second post condition.
But, when compiling this in terminal, it just flashes. There's no error message and Nothing is shown, not even the contract is not verified

file: erc_20_token.flint

@wmanshu wmanshu changed the title Brackets do not match in verification shows nothing in terminal Brackets do not match in verification shows nothing in terminal Aug 23, 2019
@wmanshu
Copy link
Author

wmanshu commented Aug 23, 2019

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants