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

add SSTORE and SLOAD to traces #456

Merged
merged 4 commits into from
Feb 13, 2025
Merged

add SSTORE and SLOAD to traces #456

merged 4 commits into from
Feb 13, 2025

Conversation

0xkarmacoma
Copy link
Collaborator

out

@0xkarmacoma
Copy link
Collaborator Author

will add a --trace-events CALL,CREATE,SSTORE option


def sstore(self, ex: Exec, addr: Any, loc: Any, val: Any) -> None:
ex.context.trace.append(StorageWrite(addr, loc, val))

Copy link
Collaborator

Choose a reason for hiding this comment

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

do you want to add this event even in the case of raising WriteInStaticContext below?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, I think it's going to be useful for debugging - so you know what it tried to write that caused the revert

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

example
image

@0xkarmacoma
Copy link
Collaborator Author

will add a --trace-events CALL,CREATE,SSTORE option

in 4685084

@0xkarmacoma 0xkarmacoma enabled auto-merge (squash) February 13, 2025 22:03
@0xkarmacoma 0xkarmacoma merged commit a307d06 into main Feb 13, 2025
41 checks passed
@0xkarmacoma 0xkarmacoma deleted the feat/trace-sstore-sload branch February 13, 2025 22:07
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

Successfully merging this pull request may close these issues.

2 participants