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

fix: replace tuple in sstore return with struct #1115

Merged
merged 3 commits into from
Feb 21, 2024

Conversation

qiweiii
Copy link
Contributor

@qiweiii qiweiii commented Feb 21, 2024

fix #1114

/// Represents the result of an `sstore` operation.
#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct SStoreResult {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure if this is the right file to place it

Copy link
Member

Choose a reason for hiding this comment

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

The place is fine, would add more comments.

original: Value of the storage when it is first read
present: Current value of the storage
new_value: Values that that is set
is_cold: Is storage slot loaded from database

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated!

Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

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

nit on comments otherwise lgtm

@rakita
Copy link
Member

rakita commented Feb 21, 2024

Clippy not related

@rakita rakita merged commit 5736d1f into bluealloy:main Feb 21, 2024
24 of 25 checks passed
@github-actions github-actions bot mentioned this pull request Feb 21, 2024
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.

Replace tuple in sstore return with struct
2 participants