You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
contract foo {
use dep::bar::baz;fndesired_contract_function(){}}
Expected behavior
Expected the contract to contain 1 function - desired_contract_function
Bug
The contract actually contains 2 functions, desired_contract_function, and baz provided baz is a function imported in scope.
A similar error can be made for #[test] functions, although this does not trigger as often since all imported functions without the #[test] attribute are filtered out.
To reproduce
Installation method
None
Nargo version
No response
@noir-lang/noir_wasm version
No response
@noir-lang/barretenberg version
No response
@noir-lang/aztec_backend version
No response
Additional context
No response
Submission Checklist
Once I hit submit, I will assign this issue to the Project Board with the appropriate tags.
The text was updated successfully, but these errors were encountered:
Aim
Trying to compile a contract with one function:
Expected behavior
Expected the contract to contain 1 function -
desired_contract_function
Bug
The contract actually contains 2 functions,
desired_contract_function
, andbaz
providedbaz
is a function imported in scope.A similar error can be made for
#[test]
functions, although this does not trigger as often since all imported functions without the#[test]
attribute are filtered out.To reproduce
Installation method
None
Nargo version
No response
@noir-lang/noir_wasm version
No response
@noir-lang/barretenberg version
No response
@noir-lang/aztec_backend version
No response
Additional context
No response
Submission Checklist
The text was updated successfully, but these errors were encountered: