Skip to content

Commit

Permalink
Update x/claim/keeper/mission_delegation_hooks.go
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Btd <lucas.bertrand.22@gmail.com>
  • Loading branch information
Alex Johnson and lumtis authored Jul 27, 2022
1 parent 81c5721 commit 78f1b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/claim/keeper/mission_delegation_hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var _ stakingtypes.StakingHooks = MissionDelegationHooks{}
// BeforeDelegationCreated completes mission when a delegation is performed
func (h MissionDelegationHooks) BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, _ sdk.ValAddress) error {
// TODO handle error
h.k.CompleteMission(ctx, h.missionID, delAddr.String())
_ = h.k.CompleteMission(ctx, h.missionID, delAddr.String())
return nil
}

Expand Down

0 comments on commit 78f1b73

Please sign in to comment.