aztec-packages icon indicating copy to clipboard operation
aztec-packages copied to clipboard

[BUG] Why `globals` in `ContractArtifact` in `AbiValue[]` instead of `AbiValue`?

Open shiqicao opened this issue 1 month ago • 0 comments

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

shiqicao avatar Nov 26 '25 20:11 shiqicao