Skip to content

Using aztec-cli codegen to generate a contract interface incorrectly declares protocol_types imports #4193

@critesjosh

Description

@critesjosh

when I use aztec-cli codegen /targer/contract.json -o /artifacts --nr to generate a contract interface, it imported protocol_types like this:

use dep::std;
use dep::aztec::context::{ PrivateContext, PublicContext };
use dep::protocol_types::{
  address::AztecAddress,
  abis::function_selector::FunctionSelector,
  constants::RETURN_VALUES_LENGTH,
};

But protocol_types should be nested in the aztec package like this

    use dep::aztec::{
        protocol_types::{
            abis::function_selector::FunctionSelector,
            address::AztecAddress,
        },

Run the command in aztec-starter for a reproducible example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions