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 <[email protected]>
Co-authored-by: sontrinh16 <[email protected]>
Co-authored-by: Julien Robert <[email protected]>
  • 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.