func (op *Operator) Validate() error {
	balance, err := op.EthereumClient.PendingBalanceAt(context.Background(), op.Admin.Address)
	if err != nil {
		return err
	}

	if balance.Cmp(op.Params.minBalance) == -1 {
		return errors.New("Balance is insufficient")
	}

	return nil
}
// Validate checks that the operator configuration is sufficient.
Validate checks that the operator configuration is sufficient.
// Validate checks that the operator configuration is sufficient .
func (op *Operator) Validate() error {
	balance, err := op.EthereumClient.PendingBalanceAt(context.Background(), op.Admin.Address)
	if err != nil {
		return err
	}
	if balance.Cmp(op.Params.minBalance) == -1 {
		return errors.New("Balance is insufficient")
	}
	return nil
}
func ( op * Operator ) Validate ( ) error { balance , err := op . EthereumClient . PendingBalanceAt ( context . Background ( ) , op . Admin . Address ) if err != nil { return err } if balance . Cmp ( op . Params . minBalance ) == - 1 { return errors . New ( " " ) } return nil }
Validate checks that the operator configuration is sufficient.
Validate checks that the operator configuration is sufficient .