pallet-balances: Fix inactive funds migration (#12840)

* pallet-balances: Fix inactive funds migration

Fixes the inactive funds migration. It was missing to set the `storage_version` attribute for the
`Pallet` struct. Besides that it also removes the old `StorageVersion` representation and adds support
for instances of pallet-balances.

* Fix test
This commit is contained in:
Bastian Köcher
2022-12-05 14:57:03 +01:00
committed by GitHub
parent 2a0e53d11a
commit 4be3ddaa71
3 changed files with 51 additions and 63 deletions
+2 -2
View File
@@ -951,13 +951,13 @@ mod tests {
block_import_works_inner(
new_test_ext_v0(1),
array_bytes::hex_n_into_unchecked(
"0d786e24c1f9e6ce237806a22c005bbbc7dee4edd6692b6c5442843d164392de",
"216e61b2689d1243eb56d89c9084db48e50ebebc4871d758db131432c675d7c0",
),
);
block_import_works_inner(
new_test_ext(1),
array_bytes::hex_n_into_unchecked(
"348485a4ab856467b440167e45f99b491385e8528e09b0e51f85f814a3021c93",
"4738b4c0aab02d6ddfa62a2a6831ccc975a9f978f7db8d7ea8e68eba8639530a",
),
);
}