Skip to content

Commit

Permalink
Merge branch 'feature/campaigntx_mod' of github.com:sge-network/sge i…
Browse files Browse the repository at this point in the history
…nto feature/campaigntx_mod
  • Loading branch information
P-U-D-G-E committed Nov 8, 2023
2 parents cc7e978 + 261d595 commit 547c4b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion x/reward/keeper/query_reward.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ func (k Keeper) RewardsByAddressAndCategory(goCtx context.Context, req *types.Qu
rewards = append(rewards, reward)
return nil
})

if err != nil {
return nil, status.Error(codes.Internal, err.Error())
}
Expand Down
2 changes: 1 addition & 1 deletion x/reward/types/ticket.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (payload *CreateCampaignPayload) Validate(blockTime uint64) error {
}

func (payload *CreateCampaignPayload) validateRewardCategory() error {
var err = errors.New("reward category is not compatible with reward type")
err := errors.New("reward category is not compatible with reward type")
switch payload.Category {
case RewardCategory_REWARD_CATEGORY_SIGNUP:
if payload.RewardType != RewardType_REWARD_TYPE_SIGNUP &&
Expand Down

0 comments on commit 547c4b3

Please sign in to comment.