Skip to content

Commit

Permalink
refactor(chain-ops): Reuse new constructor method for `BalanceRepor…
Browse files Browse the repository at this point in the history
…ter`.
  • Loading branch information
KirilMihaylov committed Sep 26, 2024
1 parent 751bde0 commit 136ce70
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions chain-ops/src/task/balance_reporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,12 @@ impl BuiltIn for BalanceReporter {

impl super::BalanceReporter for BalanceReporter {
fn new(service_configuration: &Self::ServiceConfiguration) -> Self {
Self {
client: service_configuration.node_client().clone().query_bank(),
address: service_configuration.signer().address().into(),
fee_token: service_configuration.signer().fee_token().into(),
idle_duration: service_configuration
.balance_reporter_idle_duration(),
}
Self::new(
service_configuration.node_client().clone().query_bank(),
service_configuration.signer().address().into(),
service_configuration.signer().fee_token().into(),
service_configuration.balance_reporter_idle_duration(),
)
}
}

Expand Down

0 comments on commit 136ce70

Please sign in to comment.