-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Add Proper query to BaseApp and rootMultiStore #404
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #404 +/- ##
==========================================
+ Coverage 51.42% 52.13% +0.7%
==========================================
Files 34 34
Lines 1548 1619 +71
==========================================
+ Hits 796 844 +48
- Misses 702 721 +19
- Partials 50 54 +4 |
|
||
"golang.org/x/crypto/ripemd160" | ||
|
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.
No line between external imports.
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.
https://github.com/tendermint/coding/blob/master/go/coding_standard.md#importing-libraries
In some cases, it's nice to separate into three: standard lib, external libs, tendermint libs.
a65826c
to
7e7f480
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.
Great thanks. Made some minor changes
99a2ba1
to
d48c819
Compare
chore: silence some lint warnings
Add a Queryable interface, implemented by both rootMultiStore and iavlStore.
Path is assumed to be "/storename/subpath"
Multistore will look up the store by name, and if it is registered, and implements Queryable,
then it delegates the query to the substore.
iavlStore implements Query as the old sdk did in the application level. Tested it works directly on the iavlStore as expected.