Skip to content

Commit

Permalink
fix: avs operator constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
gpsanant committed Oct 20, 2024
1 parent bae5611 commit 9e7ec29
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/debugger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
7 changes: 4 additions & 3 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -30,8 +33,6 @@ import (
"github.com/spf13/pflag"
"github.com/spf13/viper"
"go.uber.org/zap"
"log"
"time"
)

var runCmd = &cobra.Command{
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion cmd/sidecar/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9e7ec29

Please sign in to comment.