Skip to content

Commit 41c0c78

Browse files
authored
fix: remove deny_unknown_fields from rpc types (#4869)
1 parent 99a7745 commit 41c0c78

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

crates/edr_eth/src/remote/eth.rs

-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ pub enum ReceiptConversionError {
120120

121121
/// block object returned by `eth_getBlockBy*`
122122
#[derive(Debug, Default, Clone, PartialEq, Eq, serde::Deserialize, serde::Serialize)]
123-
#[serde(deny_unknown_fields)]
124123
#[serde(rename_all = "camelCase")]
125124
pub struct Block<TX> {
126125
/// Hash of the block

crates/edr_eth/src/remote/eth/call_request.rs

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use crate::{access_list::AccessListItem, U256};
66
/// For specifying input to methods requiring a transaction object, like
77
/// `eth_call` and `eth_estimateGas`
88
#[derive(Clone, Debug, PartialEq, serde::Deserialize, serde::Serialize)]
9-
#[cfg_attr(feature = "serde", serde(deny_unknown_fields))]
109
#[cfg_attr(feature = "serde", serde(rename_all = "camelCase"))]
1110
pub struct CallRequest {
1211
/// the address from which the transaction should be sent

crates/edr_eth/src/remote/jsonrpc.rs

-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ impl<SuccessT: Serialize, ErrorT: Into<Error>> From<Result<SuccessT, ErrorT>>
9696
/// included. This member is used to correlate the context between the two
9797
/// objects.
9898
#[derive(Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
99-
#[serde(deny_unknown_fields)]
10099
#[serde(untagged)]
101100
pub enum Id {
102101
/// Numeric id

crates/edr_eth/src/transaction.rs

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use crate::{access_list::AccessListItem, Address, Bytes, U256};
1414
/// Represents _all_ transaction requests received from RPC
1515
#[derive(Clone, Debug, PartialEq, Eq, Default)]
1616
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
17-
#[cfg_attr(feature = "serde", serde(deny_unknown_fields))]
1817
#[cfg_attr(feature = "serde", serde(rename_all = "camelCase"))]
1918
pub struct EthTransactionRequest {
2019
/// from address

0 commit comments

Comments
 (0)