From 7bf04f5528d7db8bd88f6a92a0b1dc95c6559fd8 Mon Sep 17 00:00:00 2001 From: Kristijan Rebernisak Date: Tue, 12 Nov 2024 12:08:45 +0100 Subject: [PATCH] Fix NewMercuryTriggerService call post rebase --- core/capabilities/streams/mock_trigger.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/capabilities/streams/mock_trigger.go b/core/capabilities/streams/mock_trigger.go index f937b1f724b..2432f563032 100644 --- a/core/capabilities/streams/mock_trigger.go +++ b/core/capabilities/streams/mock_trigger.go @@ -3,6 +3,7 @@ package streams import ( "context" "crypto/ecdsa" + "fmt" "maps" "math/big" "sync" @@ -59,7 +60,10 @@ type MockTriggerService struct { } func NewMockTriggerService(tickerResolutionMs int64, lggr logger.Logger) *MockTriggerService { - trigger := triggers.NewMercuryTriggerService(tickerResolutionMs, lggr) + trigger, err := triggers.NewMercuryTriggerService(tickerResolutionMs, "mock-streams-trigger", "1.0.0", lggr) + if err != nil { + panic(fmt.Sprintf("failed to create MercuryTriggerService: %v", err)) + } trigger.CapabilityInfo = capInfo f := 1