diff --git a/core/chainio/avs_reader.go b/core/chainio/avs_reader.go index 0658bda0a..223ad821b 100644 --- a/core/chainio/avs_reader.go +++ b/core/chainio/avs_reader.go @@ -8,7 +8,6 @@ import ( "github.com/ethereum/go-ethereum/accounts/abi/bind" ethcommon "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/log" servicemanager "github.com/yetanotherco/aligned_layer/contracts/bindings/AlignedLayerServiceManager" contractERC20Mock "github.com/yetanotherco/aligned_layer/contracts/bindings/ERC20Mock" "github.com/yetanotherco/aligned_layer/core/config" @@ -28,7 +27,7 @@ type AvsReader struct { } func NewAvsReaderFromConfig(baseConfig *config.BaseConfig) (*AvsReader, error) { - + buildAllConfig_v0113 := eigenClientsV0113.BuildAllConfig{ EthHttpUrl: baseConfig.EthRpcUrl, EthWsUrl: baseConfig.EthWsUrl, @@ -40,7 +39,7 @@ func NewAvsReaderFromConfig(baseConfig *config.BaseConfig) (*AvsReader, error) { clients_v0113, err := eigenClientsV0113.BuildReadClients(buildAllConfig_v0113, baseConfig.Logger) if err != nil { - log.Warn("Failed to build v0.1.13 clients, trying to build v0.2.0-beta.1 clients", "err", err) + baseConfig.Logger.Warn("Failed to build v0.1.13 clients, trying to build v0.2.0-beta.1 clients", "err", err) // v0.1.13 failed, // We build the V0.2.0-beta.1 clients buildAllConfig := eigenClients.BuildAllConfig{ diff --git a/go.mod b/go.mod index 73bd07984..be854862e 100644 --- a/go.mod +++ b/go.mod @@ -4,13 +4,14 @@ go 1.22.2 require ( github.com/Layr-Labs/eigensdk-go v0.2.0-beta.1 - github.com/Layr-Labs/eigensdk-go-v0.1.13 v0.1.13 + github.com/Layr-Labs/eigensdk-go-v0.1.13 v0.1.13 // We make GO believe this library exists github.com/ethereum/go-ethereum v1.14.0 github.com/prometheus/client_golang v1.19.1 github.com/urfave/cli/v2 v2.27.1 golang.org/x/crypto v0.22.0 ) +// And we make a replace of it to a specific version. replace github.com/Layr-Labs/eigensdk-go-v0.1.13 => github.com/Layr-Labs/eigensdk-go v0.1.13 require (