Improve `storage_alias` and make `UnlockAndUnreserveAllFunds` independent of the pallet (#14773)
* Make `storage_alias` more generic over the `prefix` * Make `UnlockAndUnreserveAllFunds` indepenend from the pallet * FMT * Fix error reporting * Rename prefix type * Add test * Apply suggestions from code review Co-authored-by:Sam Johnson <sam@durosoft.com> * ".git/.scripts/commands/fmt/fmt.sh" --------- Co-authored-by:
Sam Johnson <sam@durosoft.com> Co-authored-by: command-bot <>
parent
67964d25
Showing
- substrate/Cargo.lock 1 addition, 0 deletionssubstrate/Cargo.lock
- substrate/frame/democracy/src/migrations/unlock_and_unreserve_all_funds.rs 86 additions, 16 deletions...emocracy/src/migrations/unlock_and_unreserve_all_funds.rs
- substrate/frame/support/Cargo.toml 1 addition, 0 deletionssubstrate/frame/support/Cargo.toml
- substrate/frame/support/procedural/src/lib.rs 2 additions, 2 deletionssubstrate/frame/support/procedural/src/lib.rs
- substrate/frame/support/procedural/src/storage_alias.rs 154 additions, 135 deletionssubstrate/frame/support/procedural/src/storage_alias.rs
- substrate/frame/support/src/lib.rs 44 additions, 769 deletionssubstrate/frame/support/src/lib.rs
- substrate/frame/support/src/tests/mod.rs 629 additions, 0 deletionssubstrate/frame/support/src/tests/mod.rs
- substrate/frame/support/src/tests/storage_alias.rs 192 additions, 0 deletionssubstrate/frame/support/src/tests/storage_alias.rs
Please register or sign in to comment