diff --git a/chainio/clients/avsregistry/writer.go b/chainio/clients/avsregistry/writer.go index f1233167..8e22fe43 100644 --- a/chainio/clients/avsregistry/writer.go +++ b/chainio/clients/avsregistry/writer.go @@ -443,38 +443,6 @@ func (w *ChainWriter) DeregisterOperator( return receipt, nil } -// Deregisters an operator from the given operator sets. -// On success, returns the receipt of the transaction. -func (w *ChainWriter) DeregisterOperatorOperatorSets( - ctx context.Context, - operatorSetIds types.OperatorSetIds, - operator types.Operator, - pubkey regcoord.BN254G1Point, - waitForReceipt bool, -) (*gethtypes.Receipt, error) { - w.logger.Info("deregistering operator with the AVS's registry coordinator") - - operatorAddress := gethcommon.HexToAddress(operator.Address) - noSendTxOpts, err := w.txMgr.GetNoSendTxOpts() - if err != nil { - return nil, err - } - tx, err := w.registryCoordinator.DeregisterOperator(noSendTxOpts, operatorAddress, operatorSetIds.UnderlyingType()) - if err != nil { - return nil, err - } - receipt, err := w.txMgr.Send(ctx, tx, waitForReceipt) - if err != nil { - return nil, utils.WrapError("failed to send tx with err", err.Error()) - } - w.logger.Info( - "successfully deregistered operator with the AVS's registry coordinator", - "txHash", - receipt.TxHash.String(), - ) - return receipt, nil -} - // Updates the socket of the sender (if it is a registered operator). // On success, returns the receipt of the transaction. func (w *ChainWriter) UpdateSocket(