aztec-packages
aztec-packages copied to clipboard
[BUG] Why `globals` in `ContractArtifact` in `AbiValue[]` instead of `AbiValue`?
What are you trying to do?
AbiValue can already encode array, struct, string, etc
Code Reference
export interface ContractArtifact {
/** The name of the contract. */
name: string;
/** The functions of the contract. Includes private and utility functions, plus the public dispatch function. */
functions: FunctionArtifact[];
/** The public functions of the contract, excluding dispatch. */
nonDispatchPublicFunctions: FunctionAbi[];
/** The outputs of the contract. */
outputs: {
structs: Record<string, AbiType[]>;
globals: Record<string, AbiValue[]>;
};
/** Storage layout */
storageLayout: Record<string, FieldLayout>;
/** The map of file ID to the source code and path of the file. */
fileMap: DebugFileMap;
}
Aztec Version
v3.0.0-devnet.5
OS
No response
Browser (if relevant)
No response
Node Version
No response
Additional Context
No response