Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Companion for contracts dos vector fix #1242

Merged
merged 3 commits into from
May 9, 2022
Merged
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
6 changes: 4 additions & 2 deletions polkadot-parachains/canvas-kusama/src/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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>()
}
}