diff --git a/chainio/clients/elcontracts/writer.go b/chainio/clients/elcontracts/writer.go index 882c7482..ee7de7d7 100644 --- a/chainio/clients/elcontracts/writer.go +++ b/chainio/clients/elcontracts/writer.go @@ -72,49 +72,6 @@ func NewChainWriter( } } -// BuildELChainWriter builds an ChainWriter instance. -// Deprecated: Use NewWriterFromConfig instead. -func BuildELChainWriter( - delegationManagerAddr gethcommon.Address, - avsDirectoryAddr gethcommon.Address, - ethClient eth.HttpBackend, - logger logging.Logger, - eigenMetrics metrics.Metrics, - txMgr txmgr.TxManager, -) (*ChainWriter, error) { - elContractBindings, err := NewEigenlayerContractBindings( - delegationManagerAddr, - avsDirectoryAddr, - ethClient, - logger, - ) - if err != nil { - return nil, err - } - elChainReader := NewChainReader( - elContractBindings.Slasher, - elContractBindings.DelegationManager, - elContractBindings.StrategyManager, - elContractBindings.AvsDirectory, - elContractBindings.RewardsCoordinator, - logger, - ethClient, - ) - return NewChainWriter( - elContractBindings.Slasher, - elContractBindings.DelegationManager, - elContractBindings.StrategyManager, - elContractBindings.RewardsCoordinator, - elContractBindings.AvsDirectory, - elContractBindings.StrategyManagerAddr, - elChainReader, - ethClient, - logger, - eigenMetrics, - txMgr, - ), nil -} - func NewWriterFromConfig( cfg Config, ethClient eth.HttpBackend,