From 54763277c39a6d9695ff4916171719bd1c403fda Mon Sep 17 00:00:00 2001 From: Jack Zampolin Date: Wed, 24 Mar 2021 03:02:45 -0700 Subject: [PATCH] Remove requirement for gentx to be only 1 msg (#8954) Co-authored-by: Alessio Treglia Co-authored-by: Marko --- x/genutil/collect.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/x/genutil/collect.go b/x/genutil/collect.go index ea548a5d3d..fe507cca87 100644 --- a/x/genutil/collect.go +++ b/x/genutil/collect.go @@ -134,9 +134,6 @@ func CollectTxs(cdc codec.JSONMarshaler, txJSONDecoder sdk.TxDecoder, moniker, g // genesis transactions must be single-message msgs := genTx.GetMsgs() - if len(msgs) != 1 { - return appGenTxs, persistentPeers, errors.New("each genesis transaction must provide a single genesis message") - } // TODO abstract out staking message validation back to staking msg := msgs[0].(*stakingtypes.MsgCreateValidator)