diff --git a/core/services/relay/evm/functions/coordinator_v1.go b/core/services/relay/evm/functions/coordinator_v1.go index 32cd5f10866..66240b3f8bd 100644 --- a/core/services/relay/evm/functions/coordinator_v1.go +++ b/core/services/relay/evm/functions/coordinator_v1.go @@ -13,6 +13,8 @@ import ( evmRelayTypes "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/types" ) +const logPollerWrapperV1 = "FunctionsLogPollerWrapperV1" + type CoordinatorV1 struct { address common.Address abiArgs abi.Arguments @@ -43,7 +45,7 @@ func (c *CoordinatorV1) RegisterFilters() error { return c.logPoller.RegisterFilter( logpoller.Filter{ - Name: logpoller.FilterName("FunctionsLogPollerWrapper", c.address.String(), "-v", "1"), + Name: logpoller.FilterName(logPollerWrapperV1, c.address.String()), EventSigs: []common.Hash{ functions_coordinator_1_1_0.FunctionsCoordinator110OracleRequest{}.Topic(), functions_coordinator_1_1_0.FunctionsCoordinator110OracleResponse{}.Topic(), diff --git a/core/services/relay/evm/functions/coordinator_v2.go b/core/services/relay/evm/functions/coordinator_v2.go index 29edf4676a3..555593bd716 100644 --- a/core/services/relay/evm/functions/coordinator_v2.go +++ b/core/services/relay/evm/functions/coordinator_v2.go @@ -13,6 +13,8 @@ import ( evmRelayTypes "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/types" ) +const logPollerWrapperV2 = "FunctionsLogPollerWrapperV2" + type CoordinatorV2 struct { address common.Address abiArgs abi.Arguments @@ -43,7 +45,7 @@ func (c *CoordinatorV2) RegisterFilters() error { return c.logPoller.RegisterFilter( logpoller.Filter{ - Name: logpoller.FilterName("FunctionsLogPollerWrapper", c.address.String(), "-v", "2"), + Name: logpoller.FilterName(logPollerWrapperV2, c.address.String()), EventSigs: []common.Hash{ functions_coordinator.FunctionsCoordinatorOracleRequest{}.Topic(), functions_coordinator.FunctionsCoordinatorOracleResponse{}.Topic(),