Skip to content

Commit 8f0a474

Browse files
committed
fix: Merge commit from fork
1 parent 58d3d3e commit 8f0a474

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

x/group/keeper/msg_server.go

+4
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ func (k Keeper) UpdateGroupMembers(goCtx context.Context, req *group.MsgUpdateGr
183183
return err
184184
}
185185
}
186+
// ensure that group has one of more members
187+
if totalWeight.IsZero() {
188+
return sdkerrors.Wrap(errors.ErrInvalid, "group must not be empty")
189+
}
186190
// Update group in the groupTable.
187191
g.TotalWeight = totalWeight.String()
188192
g.Version++

0 commit comments

Comments
 (0)