From 119956925dd1a1ce5533a563977d11eea260e779 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sun, 10 Apr 2022 00:12:05 +0200 Subject: [PATCH] fix: eth_feehistory reward is optional (#1127) --- ethers-core/src/types/fee.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ethers-core/src/types/fee.rs b/ethers-core/src/types/fee.rs index 1152cf01..f05df7e2 100644 --- a/ethers-core/src/types/fee.rs +++ b/ethers-core/src/types/fee.rs @@ -14,6 +14,9 @@ pub struct FeeHistory { /// The custom deserializer allows backward compatibility for those clients /// not running v1.10.7 yet. pub oldest_block: U256, + /// An (optional) array of effective priority fee per gas data points from a single block. All + /// zeroes are returned if the block is empty. + #[serde(default)] pub reward: Vec>, }