Closed iankressin closed 1 week ago
this is an issue with v field of the signed auth, imo this should be yParity but unsure if there's an rpc spec for this already
cc @klkvr
yeah iirc geth serializes this as v
@iankressin you can fix this by bumping alloy-eip7702 to 0.4.1
Works perfectly now! Thanks @mattsse @klkvr.
Component
rpc
What version of Alloy are you on?
0.6.4
Operating System
macOS (Apple Silicon)
Describe the bug
Fetching a EIP-7702 transactions from Mekong testnet using the method
provider.get_transaction_by_hash
, results in a deserialization error below.Error logs:
For other transaction types (Legacy and 4844), the method works as expected.
I've tested for the following transactions:
0xadc3f24d05f05f1065debccb1c4b033eaa35917b69b343d88d9062cdf8ecad83
0x127aeaeb1ddc81ade042d3a4e4e6fe907885db8a563c1d1dbd537c0e050ba952
0x987a287073082584307615363e7802b72020cc9a55cbbadd1894dde0d2bee9f1
The same also happens for
provider.get_block_by_number
passing a block containing a 7702 transaction, in this case block45090
andBlockTransactionsKind::Full
Error logs: Can be found here due to Github's character restriction.
The deserialization errors doesn't occur for
get_block_by_number
when the block specified doesn't contain any type 4 transactions.A minimal reproduction can be found here