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

Fix execution tracing during failed contract deployments #538

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fuzzing/fuzzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,9 @@ func chainSetupFromCompilations(fuzzer *Fuzzer, testChain *chain.TestChain) (*ex
Block: block,
TransactionIndex: len(block.Messages) - 1,
}
// Revert to genesis and re-run the failed contract deployment tx.
// Revert to one block before and re-run the failed contract deployment tx.
// We should be able to attach an execution trace; however, if it fails, we provide the ExecutionResult at a minimum.
err = testChain.RevertToBlockNumber(0)
err = testChain.RevertToBlockNumber(block.Header.Number.Uint64() - 1)
if err != nil {
return nil, fmt.Errorf("failed to reset to genesis block: %v", err)
} else {
Expand Down
Loading