Closed bkchr closed 1 year ago
bot fmt
@bkchr https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3395811 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh"
. Check out https://gitlab.parity.io/parity/mirrors/substrate/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.
Comment bot cancel 32-876d6c0b-ef05-4d17-aa17-7892c304e213
to cancel this command or bot cancel
to cancel all commands in this pull request.
@bkchr Command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh"
has finished. Result: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3395811 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3395811/artifacts/download.
bot merge
Waiting for commit status.
This pull request is doing two things:
It improve
storage_alias
by making it more generic over the prefix to use. Currentlystorage_alias
tries to guess based on the generics if the user wants to use the pallet name or a fixed identifier as prefix. This pull requests changes the macro to take an additional attribute that tells it what prefix type the user wants. Besides that a third prefix type is added, a type that implementsGet<&'static str>
can also be provided as prefix. See the docs in the code for more information on how this works.pallet_democracy::UnlockAndUnreserveAllFunds
is made independent of the presence of thepallet-democracy
pallet. This means that the migration can be used without the pallet still being used in the runtime. The user only needs to implement theUnlockConfig
for some type that is then passed toUnlockAndUnreserveAllFunds
to forward certain information that are required by the migration.Besides this the pull request also puts some tests in
frame-support
into their own file to clean up thelib.rs
.