fix: eth_feehistory reward is optional (#1127)

This commit is contained in:
Matthias Seitz 2022-04-10 00:12:05 +02:00 committed by GitHub
parent 876a19d636
commit 119956925d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,9 @@ pub struct FeeHistory {
/// The custom deserializer allows backward compatibility for those clients /// The custom deserializer allows backward compatibility for those clients
/// not running v1.10.7 yet. /// not running v1.10.7 yet.
pub oldest_block: U256, 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<Vec<U256>>, pub reward: Vec<Vec<U256>>,
} }