From 40412212dc70504804dea2b9746c0fed5a23f72b Mon Sep 17 00:00:00 2001 From: zale144 Date: Mon, 9 Sep 2024 12:22:59 +0200 Subject: [PATCH] Fix failing tests --- block/executor.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/block/executor.go b/block/executor.go index f25e5feee..41bc9356a 100644 --- a/block/executor.go +++ b/block/executor.go @@ -127,7 +127,11 @@ func addSequencerToGenesis(genesis *tmtypes.GenesisDoc, val *types.Sequencer) (* } var genSequencersState seqtypes.GenesisState - protoCodec.MustUnmarshalJSON(genesisState[sequencersModuleName], &genSequencersState) + sequencersBytes, ok := genesisState[sequencersModuleName] + if !ok { + return validator, nil + } + protoCodec.MustUnmarshalJSON(sequencersBytes, &genSequencersState) pk, err := cryptocodec.FromTmPubKeyInterface(validator.PubKey) if err != nil {