Skip to content

Commit

Permalink
Refactor: Update type from Address to PreconferAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailUshakoff committed Sep 9, 2024
1 parent 7fa8cb4 commit 768777e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Node/src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl Node {

async fn is_valid_preconfer(
ethereum_l1: Arc<EthereumL1>,
preconfer: alloy::primitives::Address,
preconfer: PreconferAddress,
) -> Result<(), Error> {
// get current lookahead
let epoch_begin_timestamp = ethereum_l1
Expand Down Expand Up @@ -208,7 +208,7 @@ impl Node {
Ok(preconfer) => {
// check valid preconfer address
if let Err(e) =
Self::is_valid_preconfer(ethereum_l1.clone(), preconfer).await
Self::is_valid_preconfer(ethereum_l1.clone(), preconfer.into()).await
{
tracing::error!("Error: {} for block_id: {}", e, msg.block_height);
return;
Expand Down

0 comments on commit 768777e

Please sign in to comment.