Skip to content

feat: GenesisObject improvements#1126

Merged
thibault-martinez merged 1 commit intodevelopfrom
25-GenesisObject
May 7, 2026
Merged

feat: GenesisObject improvements#1126
thibault-martinez merged 1 commit intodevelopfrom
25-GenesisObject

Conversation

@thibault-martinez
Copy link
Copy Markdown
Member

Summary

  • Derive Hash on GenesisObject so it can be used in hash-based collections, matching the derives on related object types.
  • Add a convenience GenesisObject::id() method that delegates to the inner ObjectData::id().
  • Add #[serde(rename = "GenesisObject")] on the internal serialization shadow struct so the serialized type name matches the public type.

Test plan

  • cargo build -p iota-sdk-types
  • cargo test -p iota-sdk-types
  • Verify BCS / serde output for GenesisObject is unchanged on the wire (rename only affects the type name reported by schema-aware formats).

@thibault-martinez thibault-martinez marked this pull request as ready for review May 7, 2026 07:49
@thibault-martinez thibault-martinez requested a review from a team as a code owner May 7, 2026 07:49
@DaughterOfMars DaughterOfMars changed the title feat: GenesisObject improvements (#1047) feat: GenesisObject improvements May 7, 2026
Base automatically changed from 24-ObjectData to develop May 7, 2026 11:11
* feat: `GenesisObject` improvements

* add id method

* serde rename
@thibault-martinez thibault-martinez merged commit 3bb4bae into develop May 7, 2026
20 checks passed
@thibault-martinez thibault-martinez deleted the 25-GenesisObject branch May 7, 2026 12:21
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