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 cp-wjhan committed Nov 30, 2022
1 parent 27c3627 commit 5046aea
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 @@ -477,14 +477,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 5046aea

Please sign in to comment.