Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Dec 12, 2023
1 parent 8de4177 commit 8d8baf2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/gov/types/v1/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func ValidateGenesis(data *GenesisState) error {

var errGroup errgroup.Group

// verify proposal IDs
// weed out duplicate proposals
proposalIds := make(map[uint64]struct{})
for _, p := range data.Proposals {
if _, ok := proposalIds[p.Id]; ok {
Expand All @@ -51,7 +51,7 @@ func ValidateGenesis(data *GenesisState) error {
proposalIds[p.Id] = struct{}{}
}

// verify deposits
// weed out duplicate deposits
errGroup.Go(func() error {
type depositKey struct {
ProposalId uint64
Expand All @@ -74,7 +74,7 @@ func ValidateGenesis(data *GenesisState) error {
return nil
})

// verify votes
// weed out duplicate votes
errGroup.Go(func() error {
type voteKey struct {
ProposalId uint64
Expand Down

0 comments on commit 8d8baf2

Please sign in to comment.