feat: deseralize other fields on tx receipts (#2209)
This commit is contained in:
parent
9c09c2d98b
commit
34775178f9
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
### Unreleased
|
### 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 `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 `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)
|
- Add support for custom JavaScript tracer to `debug_traceCall` and `debug_traceTransaction` [#2064](https://github.com/gakonst/ethers-rs/pull/2064)
|
||||||
|
|
|
@ -433,6 +433,10 @@ pub struct TransactionReceipt {
|
||||||
/// amount that's actually paid by users can only be determined post-execution
|
/// amount that's actually paid by users can only be determined post-execution
|
||||||
#[serde(rename = "effectiveGasPrice", default, skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "effectiveGasPrice", default, skip_serializing_if = "Option::is_none")]
|
||||||
pub effective_gas_price: Option<U256>,
|
pub effective_gas_price: Option<U256>,
|
||||||
|
/// 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 {
|
impl rlp::Encodable for TransactionReceipt {
|
||||||
|
|
Loading…
Reference in New Issue