mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-07 10:48:04 +00:00
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:
committed by
GitHub
parent
476e7dbb72
commit
30c2a2fc42
Generated
+180
-180
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>()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user