noir-lang / noir

Noir is a domain specific language for zero knowledge proofs
https://noir-lang.org
Apache License 2.0
821 stars 177 forks source link

chore: replace cached `in_contract` with `in_contract()` method #5324

Closed TomAFrench closed 5 days ago

TomAFrench commented 5 days ago

Description

Problem*

Resolves https://github.com/noir-lang/noir/pull/5298#discussion_r1648054135

Summary*

This PR replaces the in_contract field with a in_contract function.

Additional Context

Documentation*

Check one:

PR Checklist*

TomAFrench commented 5 days ago

Yep, tested it on the abi_attribute contract and it's all good.