Skip to content

Commit

Permalink
Fix typo (anza-xyz#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
CriesofCarrots authored Apr 11, 2024
1 parent 0e6d42e commit 9706a64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cli-output/src/cli_output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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>,
}

Expand Down
4 changes: 2 additions & 2 deletions cli/src/inflation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9706a64

Please sign in to comment.