From 10615ee8975cdcaac492db02c167cf11160d405c Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Fri, 17 Jan 2025 14:38:21 +0200 Subject: [PATCH] Removed parameter Signed-off-by: Andrei Baltariu --- header-verifier/src/lib.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/header-verifier/src/lib.rs b/header-verifier/src/lib.rs index 8b3f3c5c..2b2d756b 100644 --- a/header-verifier/src/lib.rs +++ b/header-verifier/src/lib.rs @@ -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