Skip to content

fix(anvil): use receipt data instead of transaction data for receipts_root in simulate()#13646

Open
FredPhilipy wants to merge 1 commit intofoundry-rs:masterfrom
FredPhilipy:simulate
Open

fix(anvil): use receipt data instead of transaction data for receipts_root in simulate()#13646
FredPhilipy wants to merge 1 commit intofoundry-rs:masterfrom
FredPhilipy:simulate

Conversation

@FredPhilipy
Copy link
Copy Markdown
Contributor

simulate() incorrectly passed transaction envelopes to calculate_receipt_root(), producing a receipts_root derived from transaction data rather than execution results. This PR builds proper ReceiptWithBloom entries (status, cumulative gas, logs) during simulation and uses them for the root calculation, matching executor.rs.

Before: calculate_receipt_root(&transactions_envelopes) — same data as transactions_root
After: calculate_receipt_root(&receipts) — built from actual execution results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant