Skip to content
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

(FR) let the function do the xxhash'ing of the storage key name #2

Closed
drandreaskrueger opened this issue Nov 20, 2019 · 2 comments
Closed
Assignees

Comments

@drandreaskrueger
Copy link

Hi! I am trying out your library. Very nice, that should save me time.

Without unittests, however it took time to get this one working:

get_storage_by_key (block_hash, storage_key)

In the end, I managed:

get_storage_by_key(storage_key='0x50a63a871aced22e88ee6466fe5aa5d9', block_hash=0x454...)

'0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'

which is the result from Shawn's tutorial.

My feature request:

get_storage_by_key (block_hash, storage_key_name='Sudo Key')

and then the xxh6464('Sudo Key') is done within that function.

thanks for considering it.

@drandreaskrueger drandreaskrueger changed the title (FR) let (FR) let the function do the xxhash'ing of the storage key name Nov 20, 2019
@drandreaskrueger
Copy link
Author

Like this?

#4

@emielsebastiaan
Copy link
Contributor

Hi @drandreaskrueger

Yeah thank you. We won't be merging that.
We are working on a generalized solution for exactly this.
You can find the spec here: https://github.com/w3f/Web3-collaboration/blob/master/grants/speculative/python_substrate_api.md

We hope to finish that by the end of the year.
Therefore, I am closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants