Skip to content

Commit

Permalink
remove duplicated words (#13439)
Browse files Browse the repository at this point in the history
  • Loading branch information
polymaer authored May 31, 2024
1 parent 79e0d34 commit 702abf4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions crates/aptos/src/genesis/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,19 +637,19 @@ fn validate_validators(

if !initialized_accounts.contains_key(&validator.owner_account_address.into()) {
errors.push(CliError::UnexpectedError(format!(
"Owner {} in validator {} is is not in the balances.yaml file",
"Owner {} in validator {} is not in the balances.yaml file",
validator.owner_account_address, name
)));
}
if !initialized_accounts.contains_key(&validator.operator_account_address.into()) {
errors.push(CliError::UnexpectedError(format!(
"Operator {} in validator {} is is not in the balances.yaml file",
"Operator {} in validator {} is not in the balances.yaml file",
validator.operator_account_address, name
)));
}
if !initialized_accounts.contains_key(&validator.voter_account_address.into()) {
errors.push(CliError::UnexpectedError(format!(
"Voter {} in validator {} is is not in the balances.yaml file",
"Voter {} in validator {} is not in the balances.yaml file",
validator.voter_account_address, name
)));
}
Expand Down Expand Up @@ -905,25 +905,25 @@ fn validate_employee_accounts(

if !initialized_accounts.contains_key(&pool.validator.validator.owner_address) {
return Err(CliError::UnexpectedError(format!(
"Owner address {} in employee pool #{} is is not in the balances.yaml file",
"Owner address {} in employee pool #{} is not in the balances.yaml file",
pool.validator.validator.owner_address, i
)));
}
if !initialized_accounts.contains_key(&pool.validator.validator.operator_address) {
return Err(CliError::UnexpectedError(format!(
"Operator address {} in employee pool #{} is is not in the balances.yaml file",
"Operator address {} in employee pool #{} is not in the balances.yaml file",
pool.validator.validator.operator_address, i
)));
}
if !initialized_accounts.contains_key(&pool.validator.validator.voter_address) {
return Err(CliError::UnexpectedError(format!(
"Voter address {} in employee pool #{} is is not in the balances.yaml file",
"Voter address {} in employee pool #{} is not in the balances.yaml file",
pool.validator.validator.voter_address, i
)));
}
if !initialized_accounts.contains_key(&pool.beneficiary_resetter) {
return Err(CliError::UnexpectedError(format!(
"Beneficiary resetter {} in employee pool #{} is is not in the balances.yaml file",
"Beneficiary resetter {} in employee pool #{} is not in the balances.yaml file",
pool.beneficiary_resetter, i
)));
}
Expand Down

0 comments on commit 702abf4

Please sign in to comment.