Skip to content

Commit

Permalink
fix: bug in delegation approval when no signer provided (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur authored Oct 29, 2024
1 parent 79add35 commit 5653e62
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/operator/get_delegation_approval.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,12 @@ func getApprovalConfig(cCtx *cli.Context) (*ApprovalConfig, error) {
privateKeyHex := cCtx.String(flags.EcdsaPrivateKeyFlag.Name)
keystoreFilePath := cCtx.String(flags.PathToKeyStoreFlag.Name)
if privateKeyHex == "" && keystoreFilePath == "" {
return nil, fmt.Errorf("either private key or keystore file path is required. other signer not supported")
return &ApprovalConfig{
OperatorConfigFilePath: configurationFilePath,
StakerAddress: stakerAddress,
Expiry: expirySeconds,
SignerConfig: types.SignerConfig{},
}, nil
}

if privateKeyHex != "" {
Expand Down

0 comments on commit 5653e62

Please sign in to comment.