Skip to content

Add migration to fix TI after evm fees divergence#2670

Open
gztensor wants to merge 7 commits into
devnet-readyfrom
feat/migrate-fix-total-issuance-evm-fees
Open

Add migration to fix TI after evm fees divergence#2670
gztensor wants to merge 7 commits into
devnet-readyfrom
feat/migrate-fix-total-issuance-evm-fees

Conversation

@gztensor
Copy link
Copy Markdown
Contributor

Description

Adds a one-shot subtensor migration, migrate_fix_total_issuance_evm_fees, to repair testnet issuance accounting after the earlier EVM fees issue. The migration sets subtensor pallet TotalIssuance to the balances pallet TotalIssuance, records itself in HasMigrationRun, and is wired into runtime upgrade hooks.

Includes a focused test covering the issuance correction and confirming the migration does not run more than once.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Other (please describe):

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have run ./scripts/fix_rust.sh to ensure my code is formatted and linted correctly
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@gztensor gztensor added the skip-cargo-audit This PR fails cargo audit but needs to be merged anyway label May 18, 2026
@gztensor gztensor self-assigned this May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-cargo-audit This PR fails cargo audit but needs to be merged anyway

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants