diff --git a/aztec/src/context/unconstrained_context.nr b/aztec/src/context/unconstrained_context.nr index 8811a048..b3669161 100644 --- a/aztec/src/context/unconstrained_context.nr +++ b/aztec/src/context/unconstrained_context.nr @@ -8,7 +8,7 @@ struct UnconstrainedContext { } impl UnconstrainedContext { - fn new() -> Self { + unconstrained fn new() -> Self { // We could call these oracles on the getters instead of at creation, which makes sense given that they might // not even be accessed. However any performance gains are minimal, and we'd rather fail early if a user // incorrectly attempts to create an UnconstrainedContext in an environment in which these oracles are not diff --git a/aztec/src/oracle/get_contract_instance.nr b/aztec/src/oracle/get_contract_instance.nr index 2cb2a370..84a017a5 100644 --- a/aztec/src/oracle/get_contract_instance.nr +++ b/aztec/src/oracle/get_contract_instance.nr @@ -14,7 +14,7 @@ unconstrained fn get_contract_instance_internal(address: AztecAddress) -> [Field get_contract_instance_oracle(address) } -unconstrained fn get_contract_instance_internal_avm(address: AztecAddress) -> [Field; CONTRACT_INSTANCE_LENGTH + 1] { +unconstrained pub fn get_contract_instance_internal_avm(address: AztecAddress) -> [Field; CONTRACT_INSTANCE_LENGTH + 1] { get_contract_instance_oracle_avm(address) }