diff --git a/cli/actions/register_operator_with_avs.go b/cli/actions/register_operator_with_avs.go index 4c983e6..0b57d74 100644 --- a/cli/actions/register_operator_with_avs.go +++ b/cli/actions/register_operator_with_avs.go @@ -39,7 +39,7 @@ func RegisterOperatorWithAvs(ctx *cli.Context) error { log.Printf("OPERATOR_ECDSA_KEY_PASSWORD env var not set. using empty string") } operatorEcdsaPrivKey, err := sdkecdsa.ReadKey( - nodeConfig.EcdsaPrivateKeyStorePath, + operator.Config().EcdsaPrivateKeyStorePath, ecdsaKeyPassword, ) if err != nil { diff --git a/operator/operator.go b/operator/operator.go index 9041dd4..8ac9366 100644 --- a/operator/operator.go +++ b/operator/operator.go @@ -448,3 +448,7 @@ func (o *Operator) SignTaskResponse(taskResponse *message.AlertTaskInfo) (*messa o.logger.Debug("Signed task response", "signedTaskResponse", signedTaskResponse) return signedTaskResponse, nil } + +func (o Operator) Config() config.NodeConfig { + return o.config +}