mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-13 03:26:38 +00:00
core/types: fix unhandled errors in TestTransactionCoding (#24692)
This commit is contained in:
parent
16701c5169
commit
1f5943e4f9
1 changed files with 6 additions and 2 deletions
|
|
@ -477,14 +477,18 @@ func TestTransactionCoding(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
assertEqual(parsedTx, tx)
|
if err := assertEqual(parsedTx, tx); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
// JSON
|
// JSON
|
||||||
parsedTx, err = encodeDecodeJSON(tx)
|
parsedTx, err = encodeDecodeJSON(tx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
assertEqual(parsedTx, tx)
|
if err := assertEqual(parsedTx, tx); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue