Companion for contracts dos vector fix (#1242)

* Companion for contracts dos vector fix

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
This commit is contained in:
Alexander Theißen
2022-05-09 12:00:44 +02:00
committed by GitHub
parent 476e7dbb72
commit 30c2a2fc42
2 changed files with 184 additions and 182 deletions
Generated
+180 -180
View File
File diff suppressed because it is too large Load Diff
@@ -8,8 +8,9 @@ use frame_support::{
weights::Weight,
};
use pallet_contracts::{
migration,
weights::{SubstrateWeight, WeightInfo},
Config, DefaultAddressGenerator, Frame, Schedule,
Config, DefaultAddressGenerator, DefaultContractAccessWeight, Frame, Schedule,
};
pub use parachains_common::AVERAGE_ON_INITIALIZE_RATIO;
@@ -55,11 +56,12 @@ impl Config for Runtime {
type Schedule = MySchedule;
type CallStack = [Frame<Self>; 31];
type AddressGenerator = DefaultAddressGenerator;
type ContractAccessWeight = DefaultContractAccessWeight<RuntimeBlockWeights>;
}
pub struct Migrations;
impl OnRuntimeUpgrade for Migrations {
fn on_runtime_upgrade() -> Weight {
pallet_contracts::migration::migrate::<Runtime>()
migration::migrate::<Runtime>()
}
}