-
Notifications
You must be signed in to change notification settings - Fork 40
feat: read constants and storage when using pop call chain
#664
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
Conversation
33b7470 to
f93566d
Compare
f93566d to
74b7377
Compare
Codecov Report❌ Patch coverage is @@ Coverage Diff @@
## main #664 +/- ##
==========================================
+ Coverage 76.66% 76.79% +0.12%
==========================================
Files 108 108
Lines 23370 24280 +910
Branches 23370 24280 +910
==========================================
+ Hits 17917 18646 +729
- Misses 3582 3702 +120
- Partials 1871 1932 +61
... and 1 file with indirect coverage changes 🚀 New features to boost your workflow:
|
1192c67 to
292c287
Compare
da1d282 to
2ed23ea
Compare
f26c9a5 to
0d1e0a7
Compare
0d1e0a7 to
5155ad8
Compare
AlexD10S
left a comment
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.
I tried out the issues we talked about yesterday and did some extra testing and everything’s running smoothly! Super cool feature, great work!
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.
Still half way through the review, but as I will need to complete this tomorrow I'm leaving a nit for now, but this is pretty cool! :)
925a142 to
9f3a0dc
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.
On testing the feature and doing some queries I've noted the following:
- When I querying a map without providing any key as a parameter I was able to obtain all the values for the map, but the keys were not listed. More concretely the map I was reading was
CoreDescriptors.
⚙ pop call chain --pallet CoretimeAssignmentProvider --function CoreDescriptors --url wss://paseo.dotters.network/
I think that if I'm querying all entries of a map without passing any concrete key it would be useful getting the keys as well.
- I tried querying, without passing any key as parameter, a storage item that expects a tuple as a key:
CoreSchedules. This time I got the following parsing error:
⚙ pop call chain --pallet CoretimeAssignmentProvider --function CoreSchedules --url wss://paseo.dotters.network/
│
■ Failed to query storage: Error parsing metadata for parameter Failed to fetch storage value: Error encoding storage address: Not enough remaining bytes to decode the storage address/key
I was surprised by the different behaviors even if in both cases the parameters were marked as required.
The feat is pretty awesome! I feel the cases as above might be more edge or complex cases that could potentially need some iterations. But in general I feel that this PR is good to go. I'd be happy to introduce fixes as iterations of this feat as we move ahead and identify things, if at all.
Would hold from approval until @moliholy has a chance to see this.
|
@al3maal thanks for the feedback! I'll take a look today to see if I can address all that. If it's too cumbersome we can iterate in the future. |
|
I think iterating might make the most sense, @moliholy . But I'll wait until you have had some time to have a look at it :) |
al3mart
left a comment
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.
I'm happy with iterating over the edge cases outside of this PR. Let's go!
c2a67ba to
4de50c6
Compare
al3mart
left a comment
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.
🚀
Closes #665.
This PR:
pop call chainto specify not only extrinsics, but also constants and storage.Screenshots