Closed LogvinovLeon closed 8 months ago
Thanks for highlighting this!
This can be done with similar logic used to prevent passing slices to unconstrained functions from constrained ones.
@TomAFrench we should probably generalize that check to error for all types that are invalid to pass from unconstrained to constrained. Such as references.
Aim
Get compilation error instead of compiler panic
Expected Behavior
compilation error
Bug
The application panicked (crashed). Message: internal error: entered unreachable code: All
oracle
methods should be wrapped in an unconstrained fn Location: compiler/noirc_evaluator/src/ssa/acir_gen/mod.rs:615To Reproduce
Project Impact
None
Impact Context
No response
Workaround
Yes
Workaround Description
Just don't do it ;)
Additional Context
No response
Installation Method
None
Nargo Version
noirc version = 0.25.0+3ad88696ab63d8b1838b4ca7e9a3a97f823ca976
NoirJS Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response