Skip to content

Commit

Permalink
op-service: remove the requirement for signer.address to be set when …
Browse files Browse the repository at this point in the history
…using op-service
  • Loading branch information
mininny committed Oct 7, 2024
1 parent eb5ede9 commit 0231b08
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions op-service/signer/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,14 @@ func (c CLIConfig) Check() error {
if err := c.TLSConfig.Check(); err != nil {
return err
}
if !((c.Endpoint == "" && c.Address == "") || (c.Endpoint != "" && c.Address != "")) {
if !((c.Endpoint == "" && c.Address == "") || (c.Endpoint != "")) {
return errors.New("signer endpoint and address must both be set or not set")
}
return nil
}

func (c CLIConfig) Enabled() bool {
if c.Endpoint != "" && c.Address != "" {
return true
}
return false
return c.Endpoint != ""
}

func ReadCLIConfig(ctx *cli.Context) CLIConfig {
Expand Down

0 comments on commit 0231b08

Please sign in to comment.