mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
warn on tx failure
This commit is contained in:
parent
3958c0ee2e
commit
d883217beb
1 changed files with 3 additions and 0 deletions
|
|
@ -109,6 +109,9 @@ func testPrestateTracer(tracerName string, dirPath string, t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatalf("failed to execute transaction: %v", err)
|
||||
}
|
||||
if vmRet.Failed() {
|
||||
t.Logf("(warn) transaction failed: %v", vmRet.Err)
|
||||
}
|
||||
tracer.OnTxEnd(&types.Receipt{GasUsed: vmRet.UsedGas}, nil)
|
||||
// Retrieve the trace result and compare against the expected
|
||||
res, err := tracer.GetResult()
|
||||
|
|
|
|||
Loading…
Reference in a new issue