Skip to content

Commit

Permalink
rename: referrer to referee in the ticket payload
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpioborn committed Dec 7, 2023
1 parent 3f2d981 commit 784d550
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 32 deletions.
5 changes: 3 additions & 2 deletions proto/sge/reward/ticket.proto
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ message GrantSignupRewardPayload {
RewardPayloadCommon common = 1 [ (gogoproto.nullable) = false ];
}

// GrantSignupReferrerRewardPayload is the type for signup referrer reward grant
// GrantSignupReferreeRewardPayload is the type for signup referrer reward grant
// payload.
message GrantSignupReferrerRewardPayload {
message GrantSignupReferreeRewardPayload {
// common is the common properties of a reward
RewardPayloadCommon common = 1 [ (gogoproto.nullable) = false ];
}

2 changes: 1 addition & 1 deletion x/reward/types/reward_signup_referral.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (sur SignUpReferralReward) ValidateCampaign(campaign Campaign, blockTime ui
func (sur SignUpReferralReward) Calculate(goCtx context.Context, ctx sdk.Context, keepers RewardFactoryKeepers,
campaign Campaign, ticket, creator string,
) (RewardFactoryData, error) {
var payload GrantSignupReferrerRewardPayload
var payload GrantSignupReferreeRewardPayload
if err := keepers.OVMKeeper.VerifyTicketUnmarshal(goCtx, ticket, &payload); err != nil {
return RewardFactoryData{}, sdkerrors.Wrapf(ErrInTicketVerification, "%s", err)
}
Expand Down
58 changes: 29 additions & 29 deletions x/reward/types/ticket.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 784d550

Please sign in to comment.