Skip to content

Conversation

@Thoralf-M
Copy link
Member

@Thoralf-M Thoralf-M commented Aug 12, 2025

Fixes #59

Had to rename graphql MoveStruct to MoveStructQuery, because it was conflicting with the other one in iota-sdk-types:
error: symbol UNIFFI_META_IOTA_SDK_FFI_RECORD_MOVESTRUCT is already defined

@thibault-martinez
Copy link
Member

Conflicts

@Thoralf-M Thoralf-M linked an issue Aug 13, 2025 that may be closed by this pull request
#[derive(Debug, derive_more::From, uniffi::Object)]
pub struct MoveFunction(pub iota_graphql_client::query_types::MoveFunction);
#[uniffi::remote(Record)]
pub struct MoveFunction {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we could just append Query to all of the queries for consistency? We should probably do this in the core crate too eventually.

Copy link
Member Author

Choose a reason for hiding this comment

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

Seems like there is no way to use uniffi::remote(Record) with a different name than in the core crate, so would require this change in the core crate
Don't want to do more changes than needed now, but I agree that this is something to consider

@Thoralf-M Thoralf-M merged commit cc48861 into sdk-bindings Aug 13, 2025
7 checks passed
@Thoralf-M Thoralf-M deleted the feat/MovePackageStruct branch August 13, 2025 07:28
howjmay pushed a commit to howjmay/iota-rust-sdk that referenced this pull request Oct 7, 2025
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.

MoveModule MoveFunction

4 participants