Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Bug fix: Pass enableMemory: true when requesting traces #4568

Merged
merged 1 commit into from Dec 22, 2021

Conversation

haltman-at
Copy link
Contributor

@haltman-at haltman-at commented Dec 22, 2021

Addresses #4565. It turns out you can pass enableMemory: true to get the memory in recent geth versions, so this PR does that.

I didn't do a comprehensive test of other clients (didn't check besu or erigon), but Ganache (both 6 and 7 at least) have no problem with this option being passed.

Note this still leaves the problem of us not getting storage. I thought the debugger doesn't use that; I forgot that actually it still does in certain cases (namely: when debugging failed contract creations, unless they were performed with CREATE2). So we'll want to get that too, but I figure that can be left for later; first let's fix the big obvious crash.

Copy link
Member

@cds-amal cds-amal left a comment

Choose a reason for hiding this comment

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

Looks good. Nice work sleuthing this change @haltman-at ! Hopefully the official GETH docs will soon reflect changes in GETH PR 23558

Lets see how tests come back :)

@haltman-at
Copy link
Contributor Author

Yeah, the tests of course are just testing it with Ganache 6... I also manually tested it with Ganache 7, and, obviously, with Geth itself, both newer versions that have the problem and older versions that don't. I skipped erigon and besu testing, as mentioned.

@haltman-at haltman-at merged commit 11815cc into develop Dec 22, 2021
@haltman-at haltman-at deleted the disable-disable branch December 22, 2021 22:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants