Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vcastellm committed Dec 5, 2024
1 parent 10da906 commit b130cd1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions aggsender/aggsender.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,11 @@ func (a *AggSender) buildCertificate(ctx context.Context,
return nil, fmt.Errorf("error getting next height and previous LER: %w", err)
}

meta := types.NewCertificateMetadata(fromBlock, toBlock, createdAt)
meta := types.NewCertificateMetadata(
certParams.FromBlock,
certParams.ToBlock,
uint64(time.Now().UTC().UnixMilli()),
)

return &agglayer.Certificate{
NetworkID: a.l2Syncer.OriginNetwork(),
Expand All @@ -403,7 +407,7 @@ func (a *AggSender) buildCertificate(ctx context.Context,
BridgeExits: bridgeExits,
ImportedBridgeExits: importedBridgeExits,
Height: height,
Metadata: createCertificateMetadata(certParams.ToBlock),
Metadata: meta.ToHash(),
}, nil
}

Expand Down

0 comments on commit b130cd1

Please sign in to comment.