Update all tests/mocks#1055
Conversation
drewstone
commented
Oct 12, 2025
- Fix TxBaseImplication constructor usage in transaction extension tests
- Add #[allow(dead_code)] for unused test mock utilities
- Replace manual absolute difference with .abs_diff() method
- Convert test constants to uppercase (Alice -> ALICE, etc)
- Add missing 11th parameter (authorization_list) to Evm::call for EIP-7702Summary of changes
- Fix TxBaseImplication constructor usage in transaction extension tests - Add #[allow(dead_code)] for unused test mock utilities - Replace manual absolute difference with .abs_diff() method - Convert test constants to uppercase (Alice -> ALICE, etc) - Add missing 11th parameter (authorization_list) to Evm::call for EIP-7702
Replace () with FreeEVMExecution for OnChargeTransaction type to properly utilize the mock implementation and eliminate dead code warning.
Remove ExtBuilder and MockedEvmRunner that were never used. These were copy-pasted boilerplate from the original PR but tests use new_test_ext() directly without needing ExtBuilder, and nothing references MockedEvmRunner.
- Add DoneSlashHandler to pallet_balances::Config - Add EVM config types (AccountProvider, CreateOriginFilter, CreateInnerOriginFilter, GasLimitStorageGrowthRatio) - Add Holder type to pallet_assets::Config - Add dev_accounts field to GenesisConfig - Update migrations to use new storage API - Implement DecodeWithMemTracking trait where needed
|
Claude finished @drewstone's task —— View job PR Review: Update all tests/mocksI've completed a comprehensive review of this PR that updates tests and mocks across 40 files. Here's my detailed analysis: Todo List:
✅ Code Quality & Best PracticesExcellent improvements observed:
✅ Security AnalysisNo security concerns identified:
✅ Performance ConsiderationsMinor performance improvements:
🔍 Areas for Attention
📋 Specific File Feedback
✅ DocumentationNo documentation updates appear needed as these are internal test/mock changes that don't affect public APIs. 🎯 Recommendation: APPROVEThis PR demonstrates excellent maintenance practices with:
The changes are well-contained to test environments and represent a clean update to align with Polkadot SDK changes. |