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

Companion for: Make automatic storage deposits resistant against changing deposit prices #1561

Merged
merged 5 commits into from
Sep 21, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
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
10 changes: 1 addition & 9 deletions parachains/runtimes/contracts/contracts-rococo/src/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ use crate::{
};
use frame_support::{
parameter_types,
traits::{ConstU32, Nothing, OnRuntimeUpgrade},
traits::{ConstU32, Nothing},
weights::Weight,
};
use pallet_contracts::{
migration,
weights::{SubstrateWeight, WeightInfo},
Config, DefaultAddressGenerator, DefaultContractAccessWeight, Frame, Schedule,
};
Expand Down Expand Up @@ -61,10 +60,3 @@ impl Config for Runtime {
type RelaxedMaxCodeLen = ConstU32<{ 256 * 1024 }>;
type MaxStorageKeyLen = ConstU32<128>;
}

pub struct Migrations;
impl OnRuntimeUpgrade for Migrations {
fn on_runtime_upgrade() -> Weight {
migration::migrate::<Runtime>()
}
}
2 changes: 1 addition & 1 deletion parachains/runtimes/contracts/contracts-rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
contracts::Migrations,
pallet_contracts::Migration<Runtime>,
>;

impl_opaque_keys! {
Expand Down