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.