From 999e4a121c939c8f5b2c5c2d9335274d5d9a97e6 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Fri, 17 Jan 2025 14:39:31 +0200 Subject: [PATCH] Fixed errors Signed-off-by: Andrei Baltariu --- header-verifier/src/lib.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/header-verifier/src/lib.rs b/header-verifier/src/lib.rs index 2b2d756b..017ca0a6 100644 --- a/header-verifier/src/lib.rs +++ b/header-verifier/src/lib.rs @@ -107,7 +107,7 @@ pub trait Headerverifier: setup_phase::SetupPhaseModule { fn change_validator_set(&self, bls_pub_keys: MultiValueEncoded) { // TODO: verify signature - self.check_validator_range(bls_pub_keys.len() as u64, self.chain_config_address().get()); + self.check_validator_range(bls_pub_keys.len() as u64); self.bls_pub_keys().clear(); self.bls_pub_keys().extend(bls_pub_keys); @@ -132,13 +132,12 @@ pub trait Headerverifier: setup_phase::SetupPhaseModule { return; } - let chain_config_mapper = self.chain_config_address(); require!( - !chain_config_mapper.is_empty(), + !self.chain_config_address().is_empty(), "The Chain-Config address is not set" ); - self.check_validator_range(self.bls_pub_keys().len() as u64, chain_config_mapper.get()); + self.check_validator_range(self.bls_pub_keys().len() as u64); // TODO: // self.tx()