Skip to content

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
@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