Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zale144 committed Sep 9, 2024
1 parent 13a4db3 commit 4041221
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion block/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4041221

Please sign in to comment.