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 fc850f0 commit 98109fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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
5 changes: 3 additions & 2 deletions test/src/sdk-harness/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ fuel-core = { version = "0.31.0", default-features = false }
fuel-core-client = { version = "0.31.0", default-features = false }

# Dependencies from the `fuel-vm` repository:
fuel-vm = { version = "0.52.0", features = ["random"] }
fuel-vm = { version = "0.55.0", features = ["random"] }

# Dependencies from the `fuels-rs` repository:
fuels = { version = "0.64.0", features = ["fuel-core-lib"] }
fuels = { git = "https://github.com/FuelLabs/fuels-rs", branch = "esdrubal/abi_changes2", features = ["fuel-core-lib"]}
#fuels = { version = "0.64.0", features = ["fuel-core-lib"] }

hex = "0.4.3"
paste = "1.0.14"
Expand Down

0 comments on commit 98109fa

Please sign in to comment.