Skip to content

Commit

Permalink
fix RegisterOperatorWithAvs failed by not use env config
Browse files Browse the repository at this point in the history
  • Loading branch information
fyInALT committed Apr 1, 2024
1 parent 416600e commit e6848eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cli/actions/register_operator_with_avs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit e6848eb

Please sign in to comment.