-
Notifications
You must be signed in to change notification settings - Fork 171
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
Starknet's getProof rpc method #2194
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2194 +/- ##
==========================================
- Coverage 75.60% 75.41% -0.20%
==========================================
Files 104 105 +1
Lines 11102 11313 +211
==========================================
+ Hits 8394 8532 +138
- Misses 2074 2124 +50
- Partials 634 657 +23 ☔ View full report in Codecov by Sentry. |
301250f
to
d383531
Compare
1ef09de
to
a33464e
Compare
b292454
to
1e50ea2
Compare
f9089bc
to
f3ded4a
Compare
|
||
func getProof(t *trie.Trie, elt *felt.Felt) ([]*HashToNode, error) { | ||
feltBytes := elt.Bytes() | ||
key := trie.NewKey(core.ContractStorageTrieHeight, feltBytes[:]) |
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.
maybe we can export the tries height, and use t.Height() here?
bea2913
to
8cdcc08
Compare
rpc/handlers.go
Outdated
{Name: "block_id"}, {Name: "classes", Optional: true}, {Name: "contracts", Optional: true}, {Name: "storage_keys", Optional: true}, | ||
}, | ||
Handler: h.StorageProof, | ||
}, |
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.
we don't need it here, this method should be present only in 0.8 endpoint
8cdcc08
to
992a329
Compare
Fixes #2180