Skip to content

Commit

Permalink
fixed conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: Riccardo Montagnin <[email protected]>
  • Loading branch information
RiccardoM committed Jun 1, 2022
1 parent 32ef4ff commit c6e4946
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion x/posts/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (k Keeper) getAllAttachments(ctx sdk.Context) []types.Attachment {
// getAllActivePollsData returns the active polls data
func (k Keeper) getAllActivePollsData(ctx sdk.Context) []types.ActivePollData {
var data []types.ActivePollData
k.IterateActivePolls(ctx, func(index int64, poll types.Attachment) (stop bool) {
k.IterateActivePolls(ctx, func(poll types.Attachment) (stop bool) {
data = append(data, types.NewActivePollData(
poll.SubspaceID,
poll.PostID,
Expand Down
3 changes: 3 additions & 0 deletions x/posts/types/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ func TestGenesisPost_Validate(t *testing.T) {
name: "invalid initial attachment id returns error",
post: types.NewGenesisPost(0, types.NewPost(
1,
0,
1,
"External id",
"Text",
Expand All @@ -384,6 +385,7 @@ func TestGenesisPost_Validate(t *testing.T) {
{
name: "invalid post returns error",
post: types.NewGenesisPost(1, types.NewPost(
0,
0,
1,
"External id",
Expand All @@ -402,6 +404,7 @@ func TestGenesisPost_Validate(t *testing.T) {
name: "valid data returns no error",
post: types.NewGenesisPost(1, types.NewPost(
1,
0,
1,
"External id",
"Text",
Expand Down

0 comments on commit c6e4946

Please sign in to comment.