Skip to content

fix: revert enabled number ordering on feetokenmetadata proto construct#326

Merged
Thaleszh merged 2 commits into
mainfrom
fix/revert-price-number-proto
Apr 10, 2026
Merged

fix: revert enabled number ordering on feetokenmetadata proto construct#326
Thaleszh merged 2 commits into
mainfrom
fix/revert-price-number-proto

Conversation

@Thaleszh

Copy link
Copy Markdown
Contributor

Description

Revert enabled number ordering on feetokenmetadata proto construct so a migration isn't required to handle the field change

Type of change

  • Bug fix (non-breaking change which fixes an issue)

PR Checklist:

Make sure each step was done:

  • Updated changelog with PR's intent
  • Lint with make lint-fix

@Thaleszh Thaleszh requested a review from jhelison as a code owner April 10, 2026 14:36
@coderabbitai

coderabbitai Bot commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 094f838f-9117-4591-9637-b3cc9791b3e7

📥 Commits

Reviewing files that changed from the base of the PR and between db16d35 and 27c9f26.

📒 Files selected for processing (1)
  • x/feeabstraction/README.md

Walkthrough

The change renumbers the enabled field tag in the FeeTokenMetadata protobuf message definition from tag 5 to tag 6. This update appears in proto/kiichain/feeabstraction/v1beta1/params.proto and the corresponding documentation in x/feeabstraction/README.md. No other fields, messages, options, or proto declarations were modified.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: reverting the enabled field number in the FeeTokenMetadata proto construct.
Description check ✅ Passed The description clearly relates to the changeset, explaining the reason for reverting the field number to avoid requiring a migration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/revert-price-number-proto

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@proto/kiichain/feeabstraction/v1beta1/params.proto`:
- Line 43: The proto change reverted the bool field "enabled" from tag 5 to tag
6 (proto/kiichain/feeabstraction/v1beta1/params.proto), which will break
unmarshalling of any payloads encoded with tag 5; first confirm whether tag 5
was ever deployed to any network/testnet/pre-release, and if it was, restore
backward compatibility by either keeping a deprecated duplicate field for tag 5
or updating the generated unmarshal logic to accept both tag numbers for Enabled
(i.e., handle tag 5 as an alias for Enabled in the unmarshal function for the
Params message); ensure the chosen fix is applied to the proto and regenerated
code and include a migration/state-repair plan if tag 5 is confirmed deployed.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: af123395-69b5-4cdd-8536-07f779f6613b

📥 Commits

Reviewing files that changed from the base of the PR and between 643a819 and db16d35.

⛔ Files ignored due to path filters (1)
  • x/feeabstraction/types/params.pb.go is excluded by !**/*.pb.go
📒 Files selected for processing (1)
  • proto/kiichain/feeabstraction/v1beta1/params.proto

Comment thread proto/kiichain/feeabstraction/v1beta1/params.proto
@codecov

codecov Bot commented Apr 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Thaleszh Thaleszh merged commit 23b426f into main Apr 10, 2026
9 of 10 checks passed
@Thaleszh Thaleszh deleted the fix/revert-price-number-proto branch April 10, 2026 20:04
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