From 5eb42376cf1b8d9586a04f62611588121707ce60 Mon Sep 17 00:00:00 2001 From: StefanIliev545 Date: Fri, 20 Dec 2024 15:41:36 +0200 Subject: [PATCH] Fix error condition. --- go/host/l1/publisher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/host/l1/publisher.go b/go/host/l1/publisher.go index 5675deacaa..9e5950097c 100644 --- a/go/host/l1/publisher.go +++ b/go/host/l1/publisher.go @@ -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 }