Skip to content

Commit

Permalink
fix: inclue referral and referee campaign in the factory
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpioborn committed Dec 7, 2023
1 parent b1f9674 commit b5f70b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/reward/types/campaign.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ func (c *Campaign) GetRewardsFactory() (IRewardFactory, error) {
return NewSignUpReward(), nil
case RewardType_REWARD_TYPE_REFERRAL_SIGNUP:
return NewSignUpRefereelReward(), nil
case RewardType_REWARD_TYPE_REFERRAL:
return NewSignUpReferrerReward(), nil
default:
return nil, sdkerrors.Wrapf(ErrUnknownRewardType, "%d", c.RewardType)
}
Expand Down

0 comments on commit b5f70b8

Please sign in to comment.