Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fastx types] stored module bytes in Object instead of CompiledModule #87

Merged
merged 1 commit into from
Dec 24, 2021

Conversation

sblackshear
Copy link
Collaborator

This should allow us to derive Serialize and Deserialize for Object.

This allows us to derive Serialize and Deserialize directly.
@sblackshear sblackshear requested a review from gdanezis December 23, 2021 16:49
Copy link
Collaborator

@gdanezis gdanezis left a comment

Choose a reason for hiding this comment

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

This is exactly what I needed to unblock #86 (#86). Many thanks. I have now rebased #86 on this, and we can commit it here or as part of #86.

/// A published Move module
Module(CompiledModule),
/// Raw bytes that deserialize to a published Move module
Module(Vec<u8>),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that eventually we should use an immutable bytes type here with an efficient clone, since we never really mutate these bytes -- we only construct new objects. Similarly we should use serde-bytes for ser/deser. Down the line ...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed!!

@sblackshear sblackshear merged commit 672ccdb into MystenLabs:main Dec 24, 2021
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