From bf4cf0d3aa7ccafe49db2764ca059ea5e72a9563 Mon Sep 17 00:00:00 2001 From: Nasr Date: Tue, 28 May 2024 11:46:41 -0400 Subject: [PATCH] fix: update unity systsem bindgen to use new felt getter #2008 --- crates/dojo-bindgen/src/plugins/unity/mod.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/crates/dojo-bindgen/src/plugins/unity/mod.rs b/crates/dojo-bindgen/src/plugins/unity/mod.rs index 71a16bfb19..0263f42a03 100644 --- a/crates/dojo-bindgen/src/plugins/unity/mod.rs +++ b/crates/dojo-bindgen/src/plugins/unity/mod.rs @@ -256,21 +256,18 @@ public class {} : ModelInstance {{ .inners .iter() .map(|field| { - format!( - "new FieldElement({}.{}).Inner()", - type_name, field.name - ) + format!("new FieldElement({}.{}).Inner", type_name, field.name) }) .collect::>() .join(",\n "), _ => { - format!("new FieldElement({}).Inner()", type_name) + format!("new FieldElement({}).Inner", type_name) } } } None => match UnityPlugin::map_type(token).as_str() { - "FieldElement" => format!("{}.Inner()", type_name), - _ => format!("new FieldElement({}).Inner()", type_name), + "FieldElement" => format!("{}.Inner", type_name), + _ => format!("new FieldElement({}).Inner", type_name), }, } })