Skip to content

Conversation

thibault-martinez
Copy link
Member

No description provided.

@thibault-martinez thibault-martinez marked this pull request as draft October 15, 2025 15:00
pub sending_module: Option<MoveModuleQuery>,
pub sender: Option<GQLAddress>,
// TODO thibault
pub type_: MoveType,
Copy link
Member Author

Choose a reason for hiding this comment

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

Did this one not need a #[cynic(rename = "type")]?

serde(with = "::serde_with::As::<serialization::BinaryMoveStructType>")
)]
pub type_: StructTag,
pub type_tag: StructTag,
Copy link
Member Author

Choose a reason for hiding this comment

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

Should this be named struct_tag?

Copy link
Contributor

Choose a reason for hiding this comment

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

I would say so

pub struct ObjectFilter {
#[cynic(rename = "type")]
pub type_: Option<String>,
pub type_tag: Option<String>,
Copy link
Member Author

Choose a reason for hiding this comment

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

This is actually called "type_filter" in the monorepo because the field is a TypeFilter enum. Wdyt?

Copy link
Contributor

Choose a reason for hiding this comment

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

That would be preferable

pub name: String,
#[cynic(rename = "type")]
pub type_: Option<OpenMoveType>,
pub type_tag: Option<OpenMoveType>,
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
pub type_tag: Option<OpenMoveType>,
pub open_move_type: Option<OpenMoveType>,

?

@thibault-martinez thibault-martinez marked this pull request as ready for review October 15, 2025 15:14
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.

2 participants