Skip to content

Commit 195fb5b

Browse files
committed
fix depreacted method
1 parent fd3a125 commit 195fb5b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cmd/workflow/simulate/manual_http_trigger.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"github.com/smartcontractkit/chainlink-common/pkg/logger"
1818
"github.com/smartcontractkit/chainlink-common/pkg/services"
1919
"github.com/smartcontractkit/chainlink-common/pkg/types/core"
20+
"github.com/smartcontractkit/chainlink-common/pkg/workflows"
2021
"github.com/smartcontractkit/chainlink/v2/core/services/workflows/events"
2122
)
2223

@@ -125,8 +126,10 @@ func (f *ManualHTTPTriggerService) ManualTrigger(ctx context.Context, triggerID
125126
}
126127
}
127128

129+
// triggerIndex defaults to zero in simulation
130+
var triggerIndex int
128131
triggerEvent := f.createManualTriggerEvent(payload)
129-
workflowExecutionID, err := events.GenerateExecutionID(workflowID, triggerEvent.Id)
132+
workflowExecutionID, err := workflows.GenerateExecutionIDWithTriggerIndex(workflowID, triggerEvent.Id, triggerIndex)
130133
if err != nil {
131134
f.lggr.Errorw("failed to generate execution ID", "err", err)
132135
workflowExecutionID = ""

0 commit comments

Comments
 (0)