Skip to content

Commit

Permalink
core/types: fix unhandled errors in TestTransactionCoding
Browse files Browse the repository at this point in the history
  • Loading branch information
tia-99 committed Apr 26, 2022
1 parent eb69f49 commit ad304da
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 ad304da

Please sign in to comment.