-
Notifications
You must be signed in to change notification settings - Fork 757
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
Example run-transactions-complete, not printing storage content #234
Comments
[update] At the following part of the example at the I've fixed it by checking the
|
Hi @blintgit, maybe wait up a couple of more contributions before talking in the "we" form, this is a bit irritating. :-) That said: good catch, can you prepare a PR with your proposed changes? |
Yes, I'm preparing the PR asap. Thanks |
returns is not a defined variable, believe you meant results. However, this doesn't seem to fix the issue for me. |
same as @hswick : so the address would not reset but I stil get an empty trie and no storage is printed |
I had another look at it and after calling runCode I tried getting the account so I can read it`s trie by calling either stateTrie.get(createdAddress) or res.runState.stateManager.getAccount(res.runState.address) but I only get an empty account, i.e. codehash is SHA3_NULL_S and stateRoot is SHA3_RLP_S. Then I tried to get the storage trie through res.runState.stateManager._getStorageTrie(res.runState.address) and for some reason you can still find it in the state manager (idk why it has two caches?!) it just didn`t commit somehow. |
Fixed by #550, will close. |
Running the example mentioned in the title, there is no output after the "---Storage---" line. According to my understanding, there should be a null_radix stored at the created address. (running gives no exceptions)
Please correct me if I'm wrong! Thanks
The text was updated successfully, but these errors were encountered: