From ea36b008cdadd0c3aee5727b9fbe275c71fbd0a0 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Tue, 21 Jun 2022 13:00:52 +0800 Subject: [PATCH] patch staking hook --- x/staking/keeper/hooks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/staking/keeper/hooks.go b/x/staking/keeper/hooks.go index 921bb96a8381..0879ab7feae7 100644 --- a/x/staking/keeper/hooks.go +++ b/x/staking/keeper/hooks.go @@ -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 }