Skip to content

fix(v4/upgrade): re-initialize state after param changes in initDynamicfeeParams#330

Merged
giunatale merged 1 commit into
mainfrom
giunatale/fix-dynamicfee-v4
May 4, 2026
Merged

fix(v4/upgrade): re-initialize state after param changes in initDynamicfeeParams#330
giunatale merged 1 commit into
mainfrom
giunatale/fix-dynamicfee-v4

Conversation

@giunatale
Copy link
Copy Markdown
Collaborator

In #326 the code missed adding an important piece that would create a panic if state is exported and then imported again, and in any case an inconsistency that may also cause unexpected behavior:

The param changes where only set in the store with SetParams, but where not actualized in the same way done by UpdateParams.

This PR adds the missing NewState plus SetState required to complete #326

Copy link
Copy Markdown
Collaborator

@tbruyelle tbruyelle left a comment

Choose a reason for hiding this comment

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

good catch!

@giunatale giunatale merged commit e1d4a66 into main May 4, 2026
14 checks passed
@giunatale giunatale deleted the giunatale/fix-dynamicfee-v4 branch May 4, 2026 09:34
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