core/types: improve error for too short transaction / receipt encoding (#24256)

Co-authored-by: Felix Lange <fjl@twurst.com>
This commit is contained in:
Justus
2022-03-09 03:44:53 -06:00
committed by GitHub
parent 19c2c60bbe
commit d1f6a9f544
5 changed files with 16 additions and 32 deletions

View File

@ -21,19 +21,19 @@
"error": "transaction type not supported"
},
{
"error": "rlp: expected List"
"error": "typed transaction too short"
},
{
"error": "rlp: expected List"
"error": "typed transaction too short"
},
{
"error": "rlp: expected List"
"error": "typed transaction too short"
},
{
"error": "rlp: expected List"
"error": "typed transaction too short"
},
{
"error": "rlp: expected List"
"error": "typed transaction too short"
},
{
"error": "rlp: expected input list for types.AccessListTx"