Skip to content

Remove redundant writes when a state object is reverted (#21)#1450

Merged
V-Staykov merged 2 commits into
0xPolygon:zkevmfrom
cffls:fix_zero_tracer
Nov 13, 2024
Merged

Remove redundant writes when a state object is reverted (#21)#1450
V-Staykov merged 2 commits into
0xPolygon:zkevmfrom
cffls:fix_zero_tracer

Conversation

@cffls

@cffls cffls commented Nov 12, 2024

Copy link
Copy Markdown

Cherry-picking 0xPolygonZero#21

* Remove redundant writes when a state object is reverted

* Change IsDirty to Transaction level

We don't want a reverted transaction to show up in written trace because it was touched by a previous transaction.

* Add storage read whenever there is a sstore

This fixes an issue when a storage slot is
* written but got reverted
* never read by sLoad opcode

When this happens, we still need to include the storage slot in the trace.
@cla-bot cla-bot Bot added the cla-signed label Nov 12, 2024
@cffls cffls requested a review from temaniarpit27 November 12, 2024 20:12
temaniarpit27
temaniarpit27 previously approved these changes Nov 13, 2024
@V-Staykov V-Staykov merged commit 29fd2da into 0xPolygon:zkevm Nov 13, 2024
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.

3 participants