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

null address check before deleting account from trie #157

Merged
merged 2 commits into from
Jul 28, 2017

Conversation

cdetrio
Copy link
Contributor

@cdetrio cdetrio commented Jul 28, 2017

This fixes a bug introduced in 0b9e9a that was causing examples/run-transaction-complete to fail with:

address created: 692a70d2e424a56d2c6c27aa97d1a86395877b3a
----running tx-------
/ethereumjs-vm/examples/run-transactions-complete/index.js:74
    createdAddress = results.createdAddress
                            ^

TypeError: Cannot read property 'createdAddress' of undefined

lib/cache.js Outdated
@@ -127,6 +127,9 @@ Cache.prototype.clear = function () {
}

Cache.prototype.del = function (key) {
if (key.toString('hex') === '') {
return
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this nessicary?

@wanderer wanderer merged commit 6a60906 into ethereumjs:master Jul 28, 2017
holgerd77 pushed a commit that referenced this pull request Mar 11, 2021
holgerd77 added a commit that referenced this pull request Mar 11, 2021
Fix a typo in doc: lsetLength → setLengthLeft
holgerd77 pushed a commit that referenced this pull request May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants