Skip to content

Commit

Permalink
Fix error condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 committed Dec 20, 2024
1 parent 6328e9a commit 5eb4237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/host/l1/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func (p *Publisher) PublishCrossChainBundle(bundle *common.ExtCrossChainBundle,

tx, err := managementCtr.AddCrossChainMessagesRoot(transactor, [32]byte(bundle.LastBatchHash.Bytes()), bundle.L1BlockHash, bundle.L1BlockNum, bundle.CrossChainRootHashes, bundle.Signature, rollupNum, forkID)
if err != nil {
if !errors.Is(err, errutil.ErrCrossChainBundleRepublished) {
if errors.Is(err, errutil.ErrCrossChainBundleRepublished) {
p.logger.Info("Cross chain bundle already published. Proceeding without publishing", log.ErrKey, err, log.BundleHashKey, bundle.LastBatchHash)
return nil
}
Expand Down

0 comments on commit 5eb4237

Please sign in to comment.