Skip to content

Commit

Permalink
Removed parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Baltariu <[email protected]>
  • Loading branch information
andreiblt1304 committed Jan 17, 2025
1 parent d48b6ae commit 10615ee
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions header-verifier/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,10 @@ pub trait Headerverifier: setup_phase::SetupPhaseModule {
);
}

fn check_validator_range(
&self,
number_of_validators: u64,
chain_config_address: ManagedAddress,
) {
let sovereign_config = self.sovereign_config(chain_config_address).get();
fn check_validator_range(&self, number_of_validators: u64) {
let sovereign_config = self
.sovereign_config(self.chain_config_address().get())
.get();

require!(
number_of_validators >= sovereign_config.min_validators
Expand Down

0 comments on commit 10615ee

Please sign in to comment.