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

Handle un-accessed storage slots in self-destruct #7255

Merged
merged 2 commits into from
Jul 10, 2024

Conversation

LukaszRozmej
Copy link
Member

@LukaszRozmej LukaszRozmej commented Jul 10, 2024

Changes

  • Proper handling of self-destruct for previously non-touched slots

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

@GhostTyper
Copy link

Whohoo, thank you.

@LukaszRozmej LukaszRozmej marked this pull request as ready for review July 10, 2024 10:01
@@ -473,5 +476,33 @@ private class StorageTreeFactory : IStorageTreeFactory
public StorageTree Create(Address address, IScopedTrieStore trieStore, Hash256 storageRoot, Hash256 stateRoot, ILogManager? logManager)
=> new(trieStore, storageRoot, logManager);
}

private class SelfDestructDictionary<TKey, TValue>(TValue destructedValue) where TKey : notnull
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
private class SelfDestructDictionary<TKey, TValue>(TValue destructedValue) where TKey : notnull
private sealed class SelfDestructDictionary<TKey, TValue>(TValue destructedValue) where TKey : notnull

😉

Copy link
Member Author

Choose a reason for hiding this comment

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

ah merged it already

@LukaszRozmej LukaszRozmej merged commit 0f01383 into master Jul 10, 2024
68 checks passed
@LukaszRozmej LukaszRozmej deleted the fix/selfdestruct-non-accessed-storage-cell branch July 10, 2024 10:52
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