From b86879dfdc87fa7dd150a106648e1067bf38d994 Mon Sep 17 00:00:00 2001 From: Madhur Shrimal Date: Tue, 6 Aug 2024 10:25:21 -0800 Subject: [PATCH] bug: fix avs directory init --- chainio/clients/elcontracts/builder.go | 1 + chainio/clients/elcontracts/writer.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/chainio/clients/elcontracts/builder.go b/chainio/clients/elcontracts/builder.go index 2c568517..957d3ec0 100644 --- a/chainio/clients/elcontracts/builder.go +++ b/chainio/clients/elcontracts/builder.go @@ -38,6 +38,7 @@ func BuildClients( elContractBindings.DelegationManager, elContractBindings.StrategyManager, elContractBindings.RewardsCoordinator, + elContractBindings.AvsDirectory, elContractBindings.StrategyManagerAddr, elChainReader, client, diff --git a/chainio/clients/elcontracts/writer.go b/chainio/clients/elcontracts/writer.go index acfa03d5..2ad7afcc 100644 --- a/chainio/clients/elcontracts/writer.go +++ b/chainio/clients/elcontracts/writer.go @@ -49,6 +49,7 @@ func NewChainWriter( delegationManager *delegationmanager.ContractDelegationManager, strategyManager *strategymanager.ContractStrategyManager, rewardsCoordinator *rewardscoordinator.ContractIRewardsCoordinator, + avsDirectory *avsdirectory.ContractIAVSDirectory, strategyManagerAddr gethcommon.Address, elChainReader Reader, ethClient eth.HttpBackend, @@ -64,6 +65,7 @@ func NewChainWriter( strategyManager: strategyManager, strategyManagerAddr: strategyManagerAddr, rewardsCoordinator: rewardsCoordinator, + avsDirectory: avsDirectory, elChainReader: elChainReader, logger: logger, ethClient: ethClient, @@ -104,6 +106,7 @@ func BuildELChainWriter( elContractBindings.DelegationManager, elContractBindings.StrategyManager, elContractBindings.RewardsCoordinator, + elContractBindings.AvsDirectory, elContractBindings.StrategyManagerAddr, elChainReader, ethClient, @@ -142,6 +145,7 @@ func NewWriterFromConfig( elContractBindings.DelegationManager, elContractBindings.StrategyManager, elContractBindings.RewardsCoordinator, + elContractBindings.AvsDirectory, elContractBindings.StrategyManagerAddr, elChainReader, ethClient,