Skip to content

Commit

Permalink
fix: Typing of artifacts (#9581)
Browse files Browse the repository at this point in the history
Should fix #9500
  • Loading branch information
sirasistant authored Oct 30, 2024
1 parent 4e5ae95 commit c71645f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion noir/noir-repo/tooling/noir_js_types/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export type WitnessMap = Map<number, string>;
export type Abi = {
parameters: AbiParameter[];
return_type: { abi_type: AbiType; visibility: Visibility } | null;
error_types: Record<string, AbiErrorType>;
error_types: Partial<Record<string, AbiErrorType>>;
};

export interface VerifierBackend {
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 @@ -40,7 +40,7 @@ export interface NoirFunctionAbi {
visibility: ABIParameterVisibility;
};
/** Mapping of error selector => error type */
error_types: Record<string, AbiErrorType>;
error_types: Partial<Record<string, AbiErrorType>>;
}

/**
Expand Down

0 comments on commit c71645f

Please sign in to comment.