-
Notifications
You must be signed in to change notification settings - Fork 382
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: map delete #2017
fix: map delete #2017
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2017 +/- ##
==========================================
+ Coverage 46.68% 48.40% +1.71%
==========================================
Files 492 409 -83
Lines 69700 62039 -7661
==========================================
- Hits 32537 30027 -2510
+ Misses 34448 29512 -4936
+ Partials 2715 2500 -215 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be unit tested as well, not just txtar tested?
I'm surprised this code works on the chain, not just with blockchain-less Golang. Map persistence was supposed to be temporarily disabled. Isn't it?
|
I forgot that map persistence was fixed. We should write documentation on the pros and cons of using a map or AVL tree, updating the Effective GNO or creating a new "Data Structures on Gno" page. |
@r3v4s I will make the docs on this - if you want to, play around with maps and check the speeds :) |
after value is delete in map by
delete(map, key)
, map variable wasn't updating it-selfContributors' checklist...
BREAKING CHANGE: xxx
message was included in the description