From 5d14ad5e20b7f288c356f2259a2298be426f5278 Mon Sep 17 00:00:00 2001 From: mpetrun5 Date: Wed, 18 Sep 2024 17:24:25 +0200 Subject: [PATCH] Add message dispatched log --- chains/evm/listener/events/handlers/hashi.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chains/evm/listener/events/handlers/hashi.go b/chains/evm/listener/events/handlers/hashi.go index 2b408fd..9fcd132 100644 --- a/chains/evm/listener/events/handlers/hashi.go +++ b/chains/evm/listener/events/handlers/hashi.go @@ -9,6 +9,7 @@ import ( ethereumABI "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/common" + "github.com/rs/zerolog/log" "github.com/sygmaprotocol/spectre-node/chains/evm/abi" "github.com/sygmaprotocol/spectre-node/chains/evm/listener/events" ) @@ -43,6 +44,10 @@ func (h *HashiDomainCollector) CollectDomains(startBlock *big.Int, endBlock *big return []uint8{}, err } + for _, l := range logs { + log.Info().Msgf("Found yaho MessageDispatched log in block %d with hash %s", l.BlockNumber, l.TxHash) + } + if len(logs) == 0 { return []uint8{}, nil }