From 34775178f9b7ad9afd6e70667a4dafc990024df4 Mon Sep 17 00:00:00 2001 From: OliverNChalk <11343499+OliverNChalk@users.noreply.github.com> Date: Tue, 28 Feb 2023 19:22:39 -0500 Subject: [PATCH] feat: deseralize other fields on tx receipts (#2209) --- CHANGELOG.md | 1 + ethers-core/src/types/transaction/response.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7534ccd9..da8dd122 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Unreleased +- Add `other: OtherFields` to `TransactionReceipt` [#2209[](https://github.com/gakonst/ethers-rs/pull/2209) - Add `Signature::recover_typed_data` [#2120](https://github.com/gakonst/ethers-rs/pull/2120) - Add `abi::encode_packed` [#2104](https://github.com/gakonst/ethers-rs/pull/2104) - Add support for custom JavaScript tracer to `debug_traceCall` and `debug_traceTransaction` [#2064](https://github.com/gakonst/ethers-rs/pull/2064) diff --git a/ethers-core/src/types/transaction/response.rs b/ethers-core/src/types/transaction/response.rs index b29d6f99..29852425 100644 --- a/ethers-core/src/types/transaction/response.rs +++ b/ethers-core/src/types/transaction/response.rs @@ -433,6 +433,10 @@ pub struct TransactionReceipt { /// amount that's actually paid by users can only be determined post-execution #[serde(rename = "effectiveGasPrice", default, skip_serializing_if = "Option::is_none")] pub effective_gas_price: Option, + /// Captures unknown fields such as additional fields used by L2s + #[cfg(not(feature = "celo"))] + #[serde(flatten)] + pub other: crate::types::OtherFields, } impl rlp::Encodable for TransactionReceipt {