alloy-rs/alloy

[Bug] Can't deserialize old transaction receipts

klefevre opened this issue · 0 comments

Component

network, json-rpc, serde

What version of Alloy are you on?

alloy v0.4.2

Operating System

Linux

Describe the bug

We get the following serde error missing field 'status' when we try to get old transaction receipts e.g. 0xea1093d492a1dcb1bef708f771a99a96ff05dcab81ca76c31940300177fcf49f.

Step to reproduce :

let provider = ProviderBuilder::new().on_http("https://rpc.ankr.com/eth".parse()?);

let receipt = provider
    .get_transaction_receipt(b256!(
        "ea1093d492a1dcb1bef708f771a99a96ff05dcab81ca76c31940300177fcf49f"
    ))
    .await?;

println!("{receipt:?}");