Skip to content

Commit

Permalink
Revert "fix: use correct attribute when searching for AVM functions"
Browse files Browse the repository at this point in the history
This reverts commit 74cc5d2.
  • Loading branch information
TomAFrench committed Mar 8, 2024
1 parent 74cc5d2 commit 2ebd859
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions yarn-project/types/src/abi/contract_artifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import {
AZTEC_INTERNAL_ATTRIBUTE,
AZTEC_PRIVATE_ATTRIBUTE,
AZTEC_PUBLIC_VM_ATTRIBUTE,
AZTEC_PUBLIC_ATTRIBUTE,
NoirCompiledContract,
} from '../noir/index.js';
import { mockVerificationKey } from './mocked_keys.js';
Expand Down Expand Up @@ -138,7 +138,7 @@ function generateFunctionArtifact(fn: NoirCompiledContractFunction): FunctionArt
function getFunctionType(fn: NoirCompiledContractFunction): FunctionType {
if (fn.custom_attributes.includes(AZTEC_PRIVATE_ATTRIBUTE)) {
return FunctionType.SECRET;
} else if (fn.custom_attributes.includes(AZTEC_PUBLIC_VM_ATTRIBUTE)) {
} else if (fn.custom_attributes.includes(AZTEC_PUBLIC_ATTRIBUTE)) {
return FunctionType.OPEN;
} else if (fn.is_unconstrained) {
return FunctionType.UNCONSTRAINED;
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/types/src/noir/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '@aztec/foundation/abi';

export const AZTEC_PRIVATE_ATTRIBUTE = 'aztec(private)';
export const AZTEC_PUBLIC_VM_ATTRIBUTE = 'aztec(public-vm)';
export const AZTEC_PUBLIC_ATTRIBUTE = 'aztec(public)';
export const AZTEC_INTERNAL_ATTRIBUTE = 'aztec(internal)';
export const AZTEC_INITIALIZER_ATTRIBUTE = 'aztec(initializer)';

Expand Down

0 comments on commit 2ebd859

Please sign in to comment.