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

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-markin committed Aug 2, 2023
1 parent 75fa66c commit 4c1b691
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
14 changes: 10 additions & 4 deletions parachains/runtimes/contracts/contracts-rococo/src/contracts.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
use crate::{
constants::currency::deposit, Balance, Balances, RandomnessCollectiveFlip, Runtime,
RuntimeCall, RuntimeEvent, Timestamp,
RuntimeCall, RuntimeEvent, RuntimeHoldReason, Timestamp,
};
use frame_support::{
parameter_types,
traits::{ConstBool, ConstU32, Nothing},
};
use pallet_contracts::{
migration::v12, weights::SubstrateWeight, Config, DebugInfo, DefaultAddressGenerator, Frame,
Schedule,
migration::{v12, v13, v14},
weights::SubstrateWeight,
Config, DebugInfo, DefaultAddressGenerator, Frame, Schedule,
};
use sp_runtime::Perbill;

Expand Down Expand Up @@ -54,5 +55,10 @@ impl Config for Runtime {
type MaxDebugBufferLen = ConstU32<{ 2 * 1024 * 1024 }>;
type MaxDelegateDependencies = ConstU32<32>;
type CodeHashLockupDepositPercent = CodeHashLockupDepositPercent;
type Migrations = (v12::Migration<Runtime>,);
type Migrations = (
v12::Migration<Runtime, Balances>,
v13::Migration<Runtime>,
v14::Migration<Runtime, Balances>,
);
type RuntimeHoldReason = RuntimeHoldReason;
}
4 changes: 2 additions & 2 deletions parachains/runtimes/contracts/contracts-rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ impl pallet_balances::Config for Runtime {
type ReserveIdentifier = [u8; 8];
type RuntimeHoldReason = RuntimeHoldReason;
type FreezeIdentifier = ();
type MaxHolds = ConstU32<0>;
type MaxHolds = ConstU32<1>;
type MaxFreezes = ConstU32<0>;
}

Expand Down Expand Up @@ -365,7 +365,7 @@ construct_runtime!(
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 33,

// Smart Contracts.
Contracts: pallet_contracts::{Pallet, Call, Storage, Event<T>} = 40,
Contracts: pallet_contracts::{Pallet, Call, Storage, Event<T>, HoldReason} = 40,

// Handy utilities.
Utility: pallet_utility::{Pallet, Call, Event} = 50,
Expand Down

0 comments on commit 4c1b691

Please sign in to comment.