From c0478abf8055c6a38e4a3997e4cdaf27e059167c Mon Sep 17 00:00:00 2001 From: avilagaston9 Date: Mon, 12 Aug 2024 16:39:38 -0300 Subject: [PATCH] fix: update handle_tick and handle_head params --- lib/lambda_ethereum_consensus/validator/validator.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lambda_ethereum_consensus/validator/validator.ex b/lib/lambda_ethereum_consensus/validator/validator.ex index 262992fd7..d4e14b183 100644 --- a/lib/lambda_ethereum_consensus/validator/validator.ex +++ b/lib/lambda_ethereum_consensus/validator/validator.ex @@ -97,7 +97,7 @@ defmodule LambdaEthereumConsensus.Validator do end @spec handle_new_head(Types.slot(), Types.root(), state) :: state - def handle_new_head(slot, head_root, %{validator: %{index: nil}} = state) do + def handle_new_head(slot, head_root, %{index: nil} = state) do log_error("-1", "setup validator", "index not present handle block", slot: slot, root: head_root @@ -117,7 +117,7 @@ defmodule LambdaEthereumConsensus.Validator do end @spec handle_tick({Types.slot(), atom()}, state) :: state - def handle_tick(_logical_time, %{validator: %{index: nil}} = state) do + def handle_tick(_logical_time, %{index: nil} = state) do log_error("-1", "setup validator", "index not present for handle tick") state end