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

RPC eth_getStorageAt returning only 0x0 #610

Closed
ckeenan opened this issue Mar 31, 2015 · 2 comments
Closed

RPC eth_getStorageAt returning only 0x0 #610

ckeenan opened this issue Mar 31, 2015 · 2 comments
Assignees
Milestone

Comments

@ckeenan
Copy link

ckeenan commented Mar 31, 2015

Using geth built from develop: in the console, admin.dumpBlock() shows this account and storage exists:

c17364ccff7dbe6006497b9e5284c41c653b0fc8: {
      Balance: '10',
      Nonce: 0,
      Root: '275d689ae4899d1f5487644614def6d00cd13efdd3938b5ccfa450aa49bcddf5',
      CodeHash: '2be56914565bc47f6dd2e703fae402207aad33d72e3ab2f1bd78626f690d7ff5',
      Storage: {
        0000000000000000000000000000000000000000000000000000000000000000: '01',
        0000000000000000000000000000000000000000000000000000000000000002: '01'
        0000000000000000000000000000000000000000000000000000000000000001: '01',
      }
    }

But running web3.eth.getStorageAt('0xc17364ccff7dbe6006497b9e5284c41c653b0fc8', 0) returns

2015/03/31 12:55:43 [RPC] eth_getStorageAt ["0x307863313733363463636666376462653630303634393762396535323834633431633635336230666338","0x0","latest"]
'0x0'
@frozeman frozeman added the RPC label Apr 1, 2015
@obscuren obscuren removed the RPC label Apr 1, 2015
@obscuren obscuren added this to the Frontier milestone Apr 1, 2015
@obscuren obscuren self-assigned this Apr 1, 2015
@obscuren
Copy link
Contributor

obscuren commented Apr 1, 2015

Could you supply a minimal viable test case (contract (byte!) code, arguments, abi, etc)

@ckeenan
Copy link
Author

ckeenan commented Apr 1, 2015

For just testing storage lookup, it's probably sufficient to use { [[0x0]] 1 [[0x1]] 2 }, which compiles to 60016000556002600155

@obscuren obscuren removed the type:bug label Apr 1, 2015
ngtuna added a commit to ngtuna/tomochain that referenced this issue Aug 8, 2019
tony-ricciardi pushed a commit to tony-ricciardi/go-ethereum that referenced this issue Jan 20, 2022
maoueh pushed a commit to streamingfast/go-ethereum that referenced this issue Dec 9, 2022
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