Skip to content

test(evm): add bank precompile supply-invariant + characterization tests#346

Merged
phenix3443 merged 1 commit into
precompile-integration-v2from
precompile/bank-regression-on-332
Jul 14, 2026
Merged

test(evm): add bank precompile supply-invariant + characterization tests#346
phenix3443 merged 1 commit into
precompile-integration-v2from
precompile/bank-regression-on-332

Conversation

@phenix3443

@phenix3443 phenix3443 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Adds bank tests on top of the native-action migration: a total-supply-invariant guard, plus dispatch-success and native-revert characterization. Test-only.

Add bank characterization + regression tests on top of the cosmos/evm
native-action migration (#332):
- TestBankSend_EVMDispatchSuccess: real static-precompile dispatch + coin move
- TestBankSend_NoSupplyInflation: the regression guard for the native-token
  inflation #332 fixes — bank.send is a transfer, so total supply must stay
  flat; before the BalanceHandler reconciliation, StateDB.Commit minted the
  debited amount back to the stale sender stateObject
- TestBankSend_FailureRevertsCleanly: native revert (reason in return data),
  balances and supply unchanged on failure

Fills the "per-tx total-supply invariant" regression test #332 left as a
follow-up. No production changes.
@phenix3443 phenix3443 merged commit 5bb046f into precompile-integration-v2 Jul 14, 2026
3 of 10 checks passed
@phenix3443 phenix3443 deleted the precompile/bank-regression-on-332 branch July 14, 2026 06:47
@github-actions github-actions Bot added the tests label Jul 14, 2026
@phenix3443 phenix3443 changed the title test(evm): add bank precompile regression tests on native-action base test(evm): add bank precompile supply-invariant + characterization tests Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant