Skip to content

Commit

Permalink
patch staking hook
Browse files Browse the repository at this point in the history
  • Loading branch information
roysc committed Jul 10, 2022
1 parent dd8fa1b commit ea36b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/staking/keeper/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (k Keeper) BeforeDelegationSharesModified(ctx sdk.Context, delAddr sdk.AccA
// BeforeDelegationRemoved - call hook if registered
func (k Keeper) BeforeDelegationRemoved(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error {
if k.hooks != nil {
k.hooks.BeforeDelegationRemoved(ctx, delAddr, valAddr)
return k.hooks.BeforeDelegationRemoved(ctx, delAddr, valAddr)
}
return nil
}
Expand Down

0 comments on commit ea36b00

Please sign in to comment.