From bf18956a8f7846501be47ad6b8d7ba972e19caa9 Mon Sep 17 00:00:00 2001 From: Marcos Henrich Date: Fri, 19 Jul 2024 12:02:46 +0100 Subject: [PATCH] Fixes. --- sway-core/src/abi_generation/fuel_abi.rs | 8 ++++---- test/src/sdk-harness/Cargo.toml | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/sway-core/src/abi_generation/fuel_abi.rs b/sway-core/src/abi_generation/fuel_abi.rs index ede4a47a0cf..0e9e1968969 100644 --- a/sway-core/src/abi_generation/fuel_abi.rs +++ b/sway-core/src/abi_generation/fuel_abi.rs @@ -54,7 +54,7 @@ impl TypeId { .read(engines, |m| m.name.clone().map(|v| v.as_str().to_string())), abi_with_callpaths: true, abi_with_fully_specified_types: true, - abi_root_type_without_generic_type_parameters: true, + abi_root_type_without_generic_type_parameters: false, }, engines, resolved_type_id, @@ -631,7 +631,7 @@ impl TypeId { types_metadata: &mut Vec, concrete_types: &mut Vec, resolved_type_id: TypeId, - mut types_metadata_to_add: &mut Vec, + types_metadata_to_add: &mut Vec, ) -> Result>, ErrorEmitted> { let type_engine = engines.te(); let decl_engine = engines.de(); @@ -903,7 +903,7 @@ impl TypeId { types_metadata: &mut Vec, concrete_types: &mut Vec, resolved_type_id: TypeId, - mut types_metadata_to_add: &mut Vec, + types_metadata_to_add: &mut Vec, ) -> Result>, ErrorEmitted> { let type_engine = engines.te(); let decl_engine = engines.de(); @@ -1202,7 +1202,7 @@ impl TypeParameter { engines: &Engines, types_metadata: &mut Vec, concrete_types: &mut Vec, - mut types_metadata_to_add: &mut Vec, + types_metadata_to_add: &mut Vec, ) -> Result { let type_id = MetadataTypeId(self.initial_type_id.index()); let type_parameter = program_abi::TypeMetadataDeclaration { diff --git a/test/src/sdk-harness/Cargo.toml b/test/src/sdk-harness/Cargo.toml index 14d4d43e5fd..32c4b51c7f2 100644 --- a/test/src/sdk-harness/Cargo.toml +++ b/test/src/sdk-harness/Cargo.toml @@ -17,7 +17,8 @@ fuel-core-client = { version = "0.31.0", default-features = false } fuel-vm = { version = "0.55.0", features = ["random"] } # Dependencies from the `fuels-rs` repository: -fuels = { version = "0.65.1", features = ["fuel-core-lib"] } +fuels = { git = "https://github.com/FuelLabs/fuels-rs", branch = "esdrubal/abi_changes2", features = ["fuel-core-lib"]} +#fuels = { version = "0.65.1", features = ["fuel-core-lib"] } hex = "0.4.3" paste = "1.0.14"