diff --git a/cmd/debugger/main.go b/cmd/debugger/main.go index 6cc18509..cb679cb4 100644 --- a/cmd/debugger/main.go +++ b/cmd/debugger/main.go @@ -72,7 +72,7 @@ func main() { sm := stateManager.NewEigenStateManager(l, grm) - if _, err := avsOperators.NewAvsOperators(sm, grm, l, cfg); err != nil { + if _, err := avsOperators.NewAvsOperatorsModel(sm, grm, l, cfg); err != nil { l.Sugar().Fatalw("Failed to create AvsOperatorsModel", zap.Error(err)) } if _, err := operatorShares.NewOperatorSharesModel(sm, grm, l, cfg); err != nil { diff --git a/cmd/run.go b/cmd/run.go index f314f4dd..f3f501d5 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -3,6 +3,9 @@ package cmd import ( "context" "fmt" + "log" + "time" + "github.com/Layr-Labs/go-sidecar/internal/clients/ethereum" "github.com/Layr-Labs/go-sidecar/internal/clients/etherscan" "github.com/Layr-Labs/go-sidecar/internal/config" @@ -30,8 +33,6 @@ import ( "github.com/spf13/pflag" "github.com/spf13/viper" "go.uber.org/zap" - "log" - "time" ) var runCmd = &cobra.Command{ @@ -89,7 +90,7 @@ var runCmd = &cobra.Command{ sm := stateManager.NewEigenStateManager(l, grm) - if _, err := avsOperators.NewAvsOperators(sm, grm, l, cfg); err != nil { + if _, err := avsOperators.NewAvsOperatorsModel(sm, grm, l, cfg); err != nil { l.Sugar().Fatalw("Failed to create AvsOperatorsModel", zap.Error(err)) } if _, err := operatorShares.NewOperatorSharesModel(sm, grm, l, cfg); err != nil { diff --git a/cmd/sidecar/main.go b/cmd/sidecar/main.go index 26be4a98..d5a18869 100644 --- a/cmd/sidecar/main.go +++ b/cmd/sidecar/main.go @@ -75,7 +75,7 @@ func main() { sm := stateManager.NewEigenStateManager(l, grm) - if _, err := avsOperators.NewAvsOperators(sm, grm, l, cfg); err != nil { + if _, err := avsOperators.NewAvsOperatorsModel(sm, grm, l, cfg); err != nil { l.Sugar().Fatalw("Failed to create AvsOperatorsModel", zap.Error(err)) } if _, err := operatorShares.NewOperatorSharesModel(sm, grm, l, cfg); err != nil {