Skip to content

Commit

Permalink
fix(staking): fix impossible conditions (backport #19621) (#19624)
Browse files Browse the repository at this point in the history
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: sontrinh16 <trinhleson2000@gmail.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
  • Loading branch information
4 people authored Mar 4, 2024
1 parent ab34a95 commit 84a1ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/staking/keeper/delegation.go
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ func (k Keeper) Unbond(
}

valAddr, err1 := k.validatorAddressCodec.StringToBytes(delegation.GetValidatorAddr())
if err != nil {
if err1 != nil {
return amount, err1
}

Expand Down

0 comments on commit 84a1ee2

Please sign in to comment.