From a2305a17a35dafa918feff6442b4c1c03eba11ff Mon Sep 17 00:00:00 2001 From: Goran Rojovic Date: Wed, 18 Dec 2024 11:19:37 +0100 Subject: [PATCH] fix: lint --- aggsender/aggsender.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aggsender/aggsender.go b/aggsender/aggsender.go index 9f354972..6170f2ae 100644 --- a/aggsender/aggsender.go +++ b/aggsender/aggsender.go @@ -206,8 +206,7 @@ func (a *AggSender) sendCertificate(ctx context.Context) (*agglayer.SignedCertif a.log.Infof("building certificate for %s estimatedSize=%d", certificateParams.String(), certificateParams.EstimatedSize()) - createdTime := time.Now().UTC().UnixMilli() - certificate, err := a.buildCertificate(ctx, certificateParams, lastSentCertificateInfo, createdTime) + certificate, err := a.buildCertificate(ctx, certificateParams, lastSentCertificateInfo) if err != nil { return nil, fmt.Errorf("error building certificate: %w", err) } @@ -372,7 +371,7 @@ func (a *AggSender) getNextHeightAndPreviousLER( // buildCertificate builds a certificate from the bridge events func (a *AggSender) buildCertificate(ctx context.Context, certParams *types.CertificateBuildParams, - lastSentCertificateInfo *types.CertificateInfo, createdAt int64) (*agglayer.Certificate, error) { + lastSentCertificateInfo *types.CertificateInfo) (*agglayer.Certificate, error) { if certParams.IsEmpty() { return nil, errNoBridgesAndClaims }