Skip to content

fix(staking): validateKeyRotationFee must not assume DefaultBondDenom#105

Merged
tbruyelle merged 1 commit into
mainfrom
fix/key-rotation-fee-denom
Jun 22, 2026
Merged

fix(staking): validateKeyRotationFee must not assume DefaultBondDenom#105
tbruyelle merged 1 commit into
mainfrom
fix/key-rotation-fee-denom

Conversation

@tbruyelle

Copy link
Copy Markdown
Collaborator

No description provided.

Coin.IsLTE panics on denom mismatch, so comparing KeyRotationFee against
a hardcoded DefaultBondDenom ("stake") zero-coin panics for chains that
use a different bond denom. Validate the coin and check positivity in a
denom-agnostic way instead.
@github-actions

Copy link
Copy Markdown

@tbruyelle your pull request is missing a changelog!

@giunatale giunatale left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, too bad we didn't notice this earlier

@tbruyelle tbruyelle merged commit 5e8d5c8 into main Jun 22, 2026
20 checks passed
@tbruyelle tbruyelle deleted the fix/key-rotation-fee-denom branch June 22, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants