Skip to content

Commit

Permalink
Fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
esdrubal committed Jul 19, 2024
1 parent 40e1329 commit bf18956
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions sway-core/src/abi_generation/fuel_abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -631,7 +631,7 @@ impl TypeId {
types_metadata: &mut Vec<program_abi::TypeMetadataDeclaration>,
concrete_types: &mut Vec<program_abi::TypeConcreteDeclaration>,
resolved_type_id: TypeId,
mut types_metadata_to_add: &mut Vec<program_abi::TypeMetadataDeclaration>,
types_metadata_to_add: &mut Vec<program_abi::TypeMetadataDeclaration>,
) -> Result<Option<Vec<program_abi::TypeApplication>>, ErrorEmitted> {
let type_engine = engines.te();
let decl_engine = engines.de();
Expand Down Expand Up @@ -903,7 +903,7 @@ impl TypeId {
types_metadata: &mut Vec<program_abi::TypeMetadataDeclaration>,
concrete_types: &mut Vec<program_abi::TypeConcreteDeclaration>,
resolved_type_id: TypeId,
mut types_metadata_to_add: &mut Vec<program_abi::TypeMetadataDeclaration>,
types_metadata_to_add: &mut Vec<program_abi::TypeMetadataDeclaration>,
) -> Result<Option<Vec<program_abi::TypeApplication>>, ErrorEmitted> {
let type_engine = engines.te();
let decl_engine = engines.de();
Expand Down Expand Up @@ -1202,7 +1202,7 @@ impl TypeParameter {
engines: &Engines,
types_metadata: &mut Vec<program_abi::TypeMetadataDeclaration>,
concrete_types: &mut Vec<program_abi::TypeConcreteDeclaration>,
mut types_metadata_to_add: &mut Vec<program_abi::TypeMetadataDeclaration>,
types_metadata_to_add: &mut Vec<program_abi::TypeMetadataDeclaration>,
) -> Result<MetadataTypeId, ErrorEmitted> {
let type_id = MetadataTypeId(self.initial_type_id.index());
let type_parameter = program_abi::TypeMetadataDeclaration {
Expand Down
3 changes: 2 additions & 1 deletion test/src/sdk-harness/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bf18956

Please sign in to comment.