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

Allow to call other contracts in verification context #2289

Closed
roman-khimov opened this issue Feb 3, 2021 · 0 comments · Fixed by #2293
Closed

Allow to call other contracts in verification context #2289

roman-khimov opened this issue Feb 3, 2021 · 0 comments · Fixed by #2293
Labels
discussion Initial issue state - proposed but not yet accepted

Comments

@roman-khimov
Copy link
Contributor

Summary or problem description
VerifyWitness helper loads verification contracts with CallFlags.ReadStates privileges (is they're not standard) which doesn't allow them to make any calls (to do that they need CallFlags.AllowCall). Now after #2215 the data that was previously available via System.Blockchain.* syscalls is only accessible via the Ledger native contract. But verification contracts can't do calls thus it's not possible at the moment to implement even the simplest verification contract that checks for blockchain height.

See #2142/#2144 also.

Do you have any solution you want to propose?
Add AllowCall to verification contract's call flags.

Neo Version

  • Neo 3

Where in the software does this update applies to?

  • Ledger
  • Other:
@roman-khimov roman-khimov added the discussion Initial issue state - proposed but not yet accepted label Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Initial issue state - proposed but not yet accepted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant