Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Sep 16, 2024
1 parent 3c03e91 commit 4346dc7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aggregator/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1729,7 +1729,7 @@ func (a *Aggregator) buildInputProver(
forcedBlockhashL1 := common.Hash{}
l1InfoRoot := batchToVerify.L1InfoRoot.Bytes()
if !isForcedBatch {
tree, err := l1infotree.NewL1InfoTree(a.logger, 32, [][32]byte{}) // nolint:gomnd
tree, err := l1infotree.NewL1InfoTree(a.logger, 32, [][32]byte{}) //nolint:gomnd
if err != nil {
return nil, err
}
Expand Down
5 changes: 4 additions & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,10 @@ func runReorgDetectorL1IfNeeded(
l1Client *ethclient.Client,
cfg *reorgdetector.Config,
) (*reorgdetector.ReorgDetector, chan error) {
if !isNeeded([]string{cdkcommon.SEQUENCE_SENDER, cdkcommon.AGGREGATOR, cdkcommon.AGGORACLE, cdkcommon.RPC}, components) {
if !isNeeded([]string{
cdkcommon.SEQUENCE_SENDER, cdkcommon.AGGREGATOR,
cdkcommon.AGGORACLE, cdkcommon.RPC},
components) {
return nil, nil
}
rd := newReorgDetector(cfg, l1Client)
Expand Down
3 changes: 2 additions & 1 deletion sequencesender/sequencesender.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ type ethTxAdditionalData struct {
}

// New inits sequence sender
func New(cfg Config, logger *log.Logger, etherman *etherman.Client, txBuilder txbuilder.TxBuilder) (*SequenceSender, error) {
func New(cfg Config, logger *log.Logger,
etherman *etherman.Client, txBuilder txbuilder.TxBuilder) (*SequenceSender, error) {
// Create sequencesender
s := SequenceSender{
cfg: cfg,
Expand Down

0 comments on commit 4346dc7

Please sign in to comment.