mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 05:51:02 +00:00
Companion for: Make automatic storage deposits resistant against changing deposit prices (#1561)
* Adapt to new contracts migration API
* Add missing type argument
* update lockfile for {"substrate", "polkadot"}
Co-authored-by: parity-processbot <>
This commit is contained in:
committed by
GitHub
parent
a9e3f09a82
commit
929ad2af1c
Generated
+309
-301
File diff suppressed because it is too large
Load Diff
@@ -4,11 +4,10 @@ use crate::{
|
|||||||
};
|
};
|
||||||
use frame_support::{
|
use frame_support::{
|
||||||
parameter_types,
|
parameter_types,
|
||||||
traits::{ConstU32, Nothing, OnRuntimeUpgrade},
|
traits::{ConstU32, Nothing},
|
||||||
weights::Weight,
|
weights::Weight,
|
||||||
};
|
};
|
||||||
use pallet_contracts::{
|
use pallet_contracts::{
|
||||||
migration,
|
|
||||||
weights::{SubstrateWeight, WeightInfo},
|
weights::{SubstrateWeight, WeightInfo},
|
||||||
Config, DefaultAddressGenerator, DefaultContractAccessWeight, Frame, Schedule,
|
Config, DefaultAddressGenerator, DefaultContractAccessWeight, Frame, Schedule,
|
||||||
};
|
};
|
||||||
@@ -60,10 +59,3 @@ impl Config for Runtime {
|
|||||||
type MaxCodeLen = ConstU32<{ 128 * 1024 }>;
|
type MaxCodeLen = ConstU32<{ 128 * 1024 }>;
|
||||||
type MaxStorageKeyLen = ConstU32<128>;
|
type MaxStorageKeyLen = ConstU32<128>;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Migrations;
|
|
||||||
impl OnRuntimeUpgrade for Migrations {
|
|
||||||
fn on_runtime_upgrade() -> Weight {
|
|
||||||
migration::migrate::<Runtime>()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ pub type Executive = frame_executive::Executive<
|
|||||||
frame_system::ChainContext<Runtime>,
|
frame_system::ChainContext<Runtime>,
|
||||||
Runtime,
|
Runtime,
|
||||||
AllPalletsWithSystem,
|
AllPalletsWithSystem,
|
||||||
contracts::Migrations,
|
pallet_contracts::Migration<Runtime>,
|
||||||
>;
|
>;
|
||||||
|
|
||||||
impl_opaque_keys! {
|
impl_opaque_keys! {
|
||||||
|
|||||||
Reference in New Issue
Block a user