Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

is the state_getStorage disabled in Kusams-cc3? #651

Closed
freddieee opened this issue Dec 3, 2019 · 1 comment
Closed

is the state_getStorage disabled in Kusams-cc3? #651

freddieee opened this issue Dec 3, 2019 · 1 comment

Comments

@freddieee
Copy link

Hi, I was using RPC call state_getStorage to query the substrate data on Kusama-cc2. After upgrading to Kusama-cc3, I found this rpc call returns nothing.

For example
One of the curl command I am using to do the query is
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "state_getStorage", "params": ["0x8cb577756012d928f17362e0741f9f2c"]}' localhost:9933, which returns
{"jsonrpc":"2.0","result":null,"id":1}

Note: 0x8cb577756012d928f17362e0741f9f2c is the 128 bits hash of "System Number"(api.query.system.number)

@bkchr
Copy link
Member

bkchr commented Dec 3, 2019

We did change the how the keys are build. https://github.com/paritytech/substrate/blob/fc6914cdb8c322cea8a4591bbf9566dd23bfd143/frame/support/procedural/src/lib.rs#L66 see here on how it is build.

@bkchr bkchr closed this as completed Dec 3, 2019
tomusdrw pushed a commit that referenced this issue Mar 26, 2021
* Add some disclaimers about security decisions

* Be more explicit with warnings
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants