Skip to content

Commit 6d48eef

Browse files
committed
fix: enforce operator address flag
1 parent dda8d46 commit 6d48eef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/operator/allocations/set_allocation_delay.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ func readAndValidateAllocationDelayConfig(c *cli.Context, logger logging.Logger)
169169
broadcast := c.Bool(flags.BroadcastFlag.Name)
170170
operatorAddress := c.String(flags.OperatorAddressFlag.Name)
171171

172+
if common.IsEmptyString(operatorAddress) {
173+
logger.Error("--operator-address flag must be set")
174+
return nil, fmt.Errorf("Empty operator address provided")
175+
}
176+
172177
callerAddress := c.String(flags.CallerAddressFlag.Name)
173178
if common.IsEmptyString(callerAddress) {
174179
logger.Infof("Caller address not provided. Using operator address (%s) as caller address", operatorAddress)

0 commit comments

Comments
 (0)