Skip to content

Commit

Permalink
fix execution tracing during contract deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
anishnaik committed Jan 14, 2025
1 parent 67cf48e commit 800e551
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 800e551

Please sign in to comment.