Skip to content

Commit

Permalink
Remove requirement for gentx to be only 1 msg (cosmos#8954)
Browse files Browse the repository at this point in the history
Co-authored-by: Alessio Treglia <[email protected]>
Co-authored-by: Marko <[email protected]>
  • Loading branch information
3 people authored Mar 24, 2021
1 parent f637f54 commit 5476327
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions x/genutil/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5476327

Please sign in to comment.