Skip to content

Commit

Permalink
Merge branch 'dev' into test_elcontracts_slashing_functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ricomateo committed Jan 7, 2025
2 parents 104c75b + a0cf13a commit 5ed8249
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion chainio/clients/avsregistry/bindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package avsregistry
import (
"github.com/Layr-Labs/eigensdk-go/chainio/clients/eth"
blsapkregistry "github.com/Layr-Labs/eigensdk-go/contracts/bindings/BLSApkRegistry"
contractDelegationManager "github.com/Layr-Labs/eigensdk-go/contracts/bindings/DelegationManager"
indexregistry "github.com/Layr-Labs/eigensdk-go/contracts/bindings/IndexRegistry"
opstateretriever "github.com/Layr-Labs/eigensdk-go/contracts/bindings/OperatorStateRetriever"
regcoordinator "github.com/Layr-Labs/eigensdk-go/contracts/bindings/RegistryCoordinator"
Expand Down Expand Up @@ -211,7 +212,14 @@ func NewBindingsFromConfig(
if err != nil {
return nil, utils.WrapError("Failed to get AvsDirectory address", err)
}
allocationManagerAddr, err = contractServiceManager.AllocationManager(&bind.CallOpts{})

delegationManager, err := contractDelegationManager.NewContractDelegationManager(
delegationManagerAddr,
client)
if err != nil {
return nil, utils.WrapError("Failed to get DelegationManager contract", err)
}
allocationManagerAddr, err = delegationManager.AllocationManager(&bind.CallOpts{})
if err != nil {
return nil, utils.WrapError("Failed to get AllocationManager address", err)
}
Expand Down

0 comments on commit 5ed8249

Please sign in to comment.