Skip to content

Commit

Permalink
fix op-challenger build
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulmalikGiwa committed Feb 21, 2024
1 parent 1819fbb commit e341492
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions op-challenger/cmd/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"
opclient "github.com/ethereum-optimism/optimism/op-service/client"

"github.com/ethereum-optimism/optimism/op-challenger/flags"
opservice "github.com/ethereum-optimism/optimism/op-service"
Expand Down Expand Up @@ -64,10 +65,13 @@ func newClientsFromCLI(ctx *cli.Context) (*batching.MultiCaller, txmgr.TxManager
return nil, nil, fmt.Errorf("failed to dial L1: %w", err)
}
defer l1Client.Close()

sysClient, err := opclient.NewSyscoinClient("")
if err != nil {
bs.Log.Warn("initTxManager", "msg", "Error in syscoin client connection")
}
caller := batching.NewMultiCaller(l1Client.Client(), batching.DefaultBatchSize)
txMgrConfig := txmgr.ReadCLIConfig(ctx)
txMgr, err := txmgr.NewSimpleTxManager("challenger", logger, &metrics.NoopTxMetrics{}, txMgrConfig)
txMgr, err := txmgr.NewSimpleTxManager("challenger", logger, &metrics.NoopTxMetrics{}, txMgrConfig, sysClient)
if err != nil {
return nil, nil, fmt.Errorf("failed to create the transaction manager: %w", err)
}
Expand Down

0 comments on commit e341492

Please sign in to comment.