Skip to content

Commit

Permalink
use correct deserializer for ots_getBlockDetails (#7453)
Browse files Browse the repository at this point in the history
use correct deserializer

* block_number in ots_getBlockDetails is a list so appropriate
  deserializer would be `lenient_block_number_seq`.
  • Loading branch information
lakshya-sky authored Mar 20, 2024
1 parent a7f1b3b commit 1a4960d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/anvil/core/src/eth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ pub enum EthRequest {
OtsGetBlockDetails(
#[cfg_attr(
feature = "serde",
serde(deserialize_with = "lenient_block_number::lenient_block_number", default)
serde(deserialize_with = "lenient_block_number::lenient_block_number_seq", default)
)]
BlockNumber,
),
Expand Down

0 comments on commit 1a4960d

Please sign in to comment.