Refactoring Checkpoint: (WIP)
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
//!
|
||||
//! This pallet serves as a minimal example of a pallet that uses the [Multi-Block Migrations
|
||||
//! Framework](pezframe_support::migrations). You can observe how to configure it in a runtime in the
|
||||
//! `kitchensink-runtime` crate.
|
||||
//! `pez-kitchensink-runtime` crate.
|
||||
//!
|
||||
//! ## Introduction and Purpose
|
||||
//!
|
||||
|
||||
@@ -26,4 +26,4 @@ pub mod v1;
|
||||
/// It helps differentiate migrations for this pallet from those of others. Note that we don't
|
||||
/// directly pull the crate name from the environment, since that would change if the crate were
|
||||
/// ever to be renamed and could cause historic migrations to run again.
|
||||
pub const PALLET_MIGRATIONS_ID: &[u8; 18] = b"pezpallet-example-mbm";
|
||||
pub const PALLET_MIGRATIONS_ID: &[u8; 21] = b"pezpallet-example-mbm";
|
||||
|
||||
@@ -66,7 +66,7 @@ pub struct LazyMigrationV1<T: Config, W: weights::WeightInfo>(PhantomData<(T, W)
|
||||
impl<T: Config, W: weights::WeightInfo> SteppedMigration for LazyMigrationV1<T, W> {
|
||||
type Cursor = u32;
|
||||
// Without the explicit length here the construction of the ID would not be infallible.
|
||||
type Identifier = MigrationId<18>;
|
||||
type Identifier = MigrationId<21>;
|
||||
|
||||
/// The identifier of this migration. Which should be globally unique.
|
||||
fn id() -> Self::Identifier {
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --runtime
|
||||
// target/release/wbuild/kitchensink-runtime/kitchensink_runtime.compact.compressed.wasm
|
||||
// target/release/wbuild/pez-kitchensink-runtime/pez_kitchensink_runtime.compact.compressed.wasm
|
||||
// --pallet
|
||||
// pezpallet_example_mbm
|
||||
// --extrinsic
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/kitchensink-runtime/kitchensink_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pez-kitchensink-runtime/pez_kitchensink_runtime.wasm
|
||||
// --pallet=pezpallet_example_mbm
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/bizinikiwi/HEADER-APACHE2
|
||||
// --output=/__w/pezkuwi-sdk/pezkuwi-sdk/bizinikiwi/pezframe/examples/multi-block-migrations/src/weights.rs
|
||||
|
||||
Reference in New Issue
Block a user