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

[types] Refactor MoveState & MoveStructState API #1040

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Conversation

jolestar
Copy link
Contributor

Summary

Refactor and Make the MoveState & MoveStructState traits clearer.

  1. MoveStructState is MoveState.
  2. Remove the repeat function from MoveStructState.
  3. Provide a layout match function for MoveState.
  4. Provide to/from functions for MoveState and MoveRuntime Value.
  • Closes #issue

@vercel
Copy link

vercel bot commented Oct 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
rooch ⬜️ Ignored (Inspect) Oct 25, 2023 9:16am

.simple_serialize(&Self::type_layout())
.ok_or_else(|| {
anyhow::anyhow!(
"Serialize the MoveState from Value error: {:?}",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Comments and error msg are inconsistent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The AI generated. I will fix it in a new PR.

@jolestar jolestar merged commit 6fa0191 into main Oct 25, 2023
4 checks passed
@jolestar jolestar deleted the movestate_refactor branch October 25, 2023 11:00
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