-
Notifications
You must be signed in to change notification settings - Fork 81
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
rpcsrv: fix findstorage if a contract state is not found #3385
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3385 +/- ##
=======================================
Coverage 84.80% 84.80%
=======================================
Files 331 331
Lines 44967 44969 +2
=======================================
+ Hits 38133 38138 +5
+ Misses 5325 5319 -6
- Partials 1509 1512 +3 ☔ View full report in Codecov by Sentry. |
893c8c8
to
94aceaf
Compare
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.
Otherwise LGTM.
pkg/services/rpcsrv/server.go
Outdated
@@ -1750,7 +1750,8 @@ func (s *Server) findStorageInternal(id int32, prefix []byte, start, take int, s | |||
var ( | |||
i int | |||
end = start + take | |||
res = new(result.FindStorage) | |||
// Results is an empty list if a contract state is not found as it is in C# implementation. |
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.
s/Results/res (if referring to a var) or s/Results is/Result is (if talking about generic operation result).
Previously findstorage returns null for the results key if a contract state is not found. C# returns an empty list. Close #3370 Signed-off-by: Ekaterina Pavlova <[email protected]>
94aceaf
to
fff25bd
Compare
Close #3370