Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr committed Feb 10, 2025
1 parent 7550a22 commit a32a414
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion aggsender/agggsender_signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ func useKMSAuth(config Config) (funcSignHash, common.Address, error) {
return nil, common.Address{}, fmt.Errorf("failed to create managed key: %w", err)
}
return mk.SignHash, mk.EthereumAddr, nil

}

func useLocalAuth(config Config) (funcSignHash, common.Address, error) {
Expand Down
5 changes: 3 additions & 2 deletions aggsender/aggsender.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"github.com/agglayer/aggkit/aggsender/types"
"github.com/agglayer/aggkit/bridgesync"
aggkitcommon "github.com/agglayer/aggkit/common"

"github.com/agglayer/aggkit/l1infotreesync"
"github.com/agglayer/aggkit/log"
"github.com/agglayer/aggkit/tree"
Expand Down Expand Up @@ -76,7 +75,9 @@ func New(
return nil, err
}
signer, signerAddr, err := newSigner(logger, cfg)

if err != nil {
return nil, err
}
rateLimit := aggkitcommon.NewRateLimit(cfg.MaxSubmitCertificateRate)

logger.Infof("Aggsender Config: %s.", cfg.String())
Expand Down
3 changes: 2 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ var (
},
{
FieldNamePattern: "SequencerPrivateKeyPath",
Reason: "SequencerPrivateKeyPath is deprecated, use AggSender.AggsenderPrivateKey.Path instead, or AggSender.KMSKeyName",
Reason: "SequencerPrivateKeyPath is deprecated, use AggSender.AggsenderPrivateKey.Path instead," +
" or AggSender.KMSKeyName",
},
{
FieldNamePattern: "SequencerPrivateKeyPassword",
Expand Down

0 comments on commit a32a414

Please sign in to comment.