Skip to content

Commit

Permalink
core/types: fix unhandled errors in TestTransactionCoding (ethereum#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
tia-99 authored and unclezoro committed Sep 21, 2022
1 parent ae31b5f commit 34420d0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/types/transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,14 +548,18 @@ func TestTransactionCoding(t *testing.T) {
if err != nil {
t.Fatal(err)
}
assertEqual(parsedTx, tx)
if err := assertEqual(parsedTx, tx); err != nil {
t.Fatal(err)
}

// JSON
parsedTx, err = encodeDecodeJSON(tx)
if err != nil {
t.Fatal(err)
}
assertEqual(parsedTx, tx)
if err := assertEqual(parsedTx, tx); err != nil {
t.Fatal(err)
}
}
}

Expand Down

0 comments on commit 34420d0

Please sign in to comment.