diff --git a/packages/fuels-core/src/code_gen/functions_gen.rs b/packages/fuels-core/src/code_gen/functions_gen.rs index faa6edb42a..a002e3c26a 100644 --- a/packages/fuels-core/src/code_gen/functions_gen.rs +++ b/packages/fuels-core/src/code_gen/functions_gen.rs @@ -424,6 +424,7 @@ mod tests { type_id: 1, ..Default::default() }, + ..Default::default() }; let types = [ ( diff --git a/packages/fuels-types/src/lib.rs b/packages/fuels-types/src/lib.rs index e293c8ddda..129240483e 100644 --- a/packages/fuels-types/src/lib.rs +++ b/packages/fuels-types/src/lib.rs @@ -49,6 +49,7 @@ pub struct ABIFunction { pub inputs: Vec, pub name: String, pub output: TypeApplication, + pub attributes: Option>, } #[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] @@ -93,6 +94,13 @@ pub struct ResolvedLog { pub resolved_type_name: TokenStream, } +#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct Attribute { + pub name: String, + pub arguments: Vec, +} + impl TypeDeclaration { pub fn is_enum_type(&self) -> bool { self.type_field.starts_with("enum ")