Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fmt and remove unused import
  • Loading branch information
bkchr committed Jul 26, 2021
commit d43e66dc835592ddd0fb32f83023dc9c52a8567e
4 changes: 3 additions & 1 deletion frame/support/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ impl PalletVersionToStorageVersionHelper for T {
/// This will remove all `PalletVersion's` from the state and insert the current storage version.
pub fn migrate_from_pallet_version_to_storage_version<
AllPallets: PalletVersionToStorageVersionHelper,
>(db_weight: &RuntimeDbWeight) -> Weight {
>(
db_weight: &RuntimeDbWeight,
) -> Weight {
AllPallets::migrate(db_weight)
}
10 changes: 7 additions & 3 deletions frame/support/test/tests/pallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use frame_support::{dispatch::{Parameter, UnfilteredDispatchable}, storage::unhashed, traits::{
use frame_support::{
dispatch::{Parameter, UnfilteredDispatchable},
storage::unhashed,
traits::{
GetCallName, GetStorageVersion, OnFinalize, OnGenesis, OnInitialize, OnRuntimeUpgrade,
PalletInfoAccess, StorageVersion,
}, weights::{DispatchClass, DispatchInfo, GetDispatchInfo, Pays, RuntimeDbWeight}};
use frame_system::WeightInfo;
},
weights::{DispatchClass, DispatchInfo, GetDispatchInfo, Pays, RuntimeDbWeight},
};
use sp_io::{
hashing::{blake2_128, twox_128, twox_64},
TestExternalities,
Expand Down