From ed145014c637045d37c752e5070e9608852ad2d7 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 429fcb48..fa294aeb 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,