This commit is contained in:
Tyera 2024-04-10 22:52:51 -06:00 committed by GitHub
parent 0e6d42e613
commit 9706a64646
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -978,7 +978,7 @@ pub struct CliKeyedEpochReward {
#[derive(Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct CliEpochRewardshMetadata {
pub struct CliEpochRewardsMetadata {
pub epoch: Epoch,
pub effective_slot: Slot,
pub block_time: UnixTimestamp,
@ -988,7 +988,7 @@ pub struct CliEpochRewardshMetadata {
#[serde(rename_all = "camelCase")]
pub struct CliKeyedEpochRewards {
#[serde(flatten, skip_serializing_if = "Option::is_none")]
pub epoch_metadata: Option<CliEpochRewardshMetadata>,
pub epoch_metadata: Option<CliEpochRewardsMetadata>,
pub rewards: Vec<CliKeyedEpochReward>,
}

View File

@ -7,7 +7,7 @@ use {
keypair::*,
},
solana_cli_output::{
CliEpochRewardshMetadata, CliInflation, CliKeyedEpochReward, CliKeyedEpochRewards,
CliEpochRewardsMetadata, CliInflation, CliKeyedEpochReward, CliKeyedEpochRewards,
},
solana_remote_wallet::remote_wallet::RemoteWalletManager,
solana_rpc_client::rpc_client::RpcClient,
@ -128,7 +128,7 @@ fn process_rewards(
});
}
let block_time = rpc_client.get_block_time(first_reward.effective_slot)?;
Some(CliEpochRewardshMetadata {
Some(CliEpochRewardsMetadata {
epoch: first_reward.epoch,
effective_slot: first_reward.effective_slot,
block_time,