Skip to content

Add support for indexed fields.#1695

Draft
tritao wants to merge 1 commit intoFuelLabs:masterfrom
tritao:indexed-fields
Draft

Add support for indexed fields.#1695
tritao wants to merge 1 commit intoFuelLabs:masterfrom
tritao:indexed-fields

Conversation

@tritao
Copy link
Copy Markdown
Contributor

@tritao tritao commented Oct 14, 2025

Release notes

In this release, we:

  • Did this and that

Summary

Breaking Changes

Checklist

  • All changes are covered by tests (or not applicable)
  • All changes are documented (or not applicable)
  • I reviewed the entire PR myself (preferably, on GH UI)
  • I described all Breaking Changes (or there's none)

@tritao tritao self-assigned this Oct 14, 2025
) -> TokenStream {
let resolved_logs = resolve_logs(logged_types);
let log_id_log_formatter_pairs = generate_log_id_log_formatter_pairs(&resolved_logs);
println!("{:#?}", log_id_log_formatter_pairs);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should remove these debug prints.

::fuels::core::codec::LogFormatter::new_log::<#resolved_type>()
}
};
println!("{:#?}", resolved_type);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the previous one

.expect("abigen generation failed")
.into()
.into();
println!("{}", code);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change should be reverted.

assert!(!Token::String("a".into()).is_exact_size_abi());
}

#[test]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the test name and body don't follow our testing rules.

}

// #[test]
// fn enum_token() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to have this test or remove it? I think commented test is not acceptable.

Comment thread Cargo.toml
eth-keystore = "0.5.0"
flate2 = { version = "1.0", default-features = false }
fuel-abi-types = "0.15.3"
fuel-abi-types = { path = "../sway/fuel-abi-types/", version = "0.13.0" }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one shouldn't be merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants