Skip to content

Commit

Permalink
main.go fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodeymo committed Oct 9, 2024
1 parent 4880aaf commit db0e8c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugin/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/Layr-Labs/incredible-squaring-avs/types"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/urfave/cli"
)

Expand Down Expand Up @@ -104,7 +105,7 @@ func plugin(ctx *cli.Context) {
PromMetricsIpPortAddress: avsConfig.EigenMetricsIpPortAddress,
}
logger, _ := logging.NewZapLogger(logging.Development)
ethHttpClient, err := eth.NewClient(avsConfig.EthRpcUrl)
ethHttpClient, err := ethclient.Dial(avsConfig.EthRpcUrl)
if err != nil {
fmt.Println("can't connect to eth client")
fmt.Println(err)
Expand Down Expand Up @@ -152,11 +153,12 @@ func plugin(ctx *cli.Context) {
return
}
txMgr := txmgr.NewSimpleTxManager(skWallet, ethHttpClient, logger, common.HexToAddress(avsConfig.OperatorAddress))
ethRpcClientInstrumented := eth.NewInstrumentedClientFromClient(ethHttpClient, nil)
avsWriter, err := chainio.BuildAvsWriter(
txMgr,
common.HexToAddress(avsConfig.AVSRegistryCoordinatorAddress),
common.HexToAddress(avsConfig.OperatorStateRetrieverAddress),
ethHttpClient,
*ethRpcClientInstrumented,
logger,
)
if err != nil {
Expand Down

0 comments on commit db0e8c7

Please sign in to comment.