Companion for substrate#13565 (#2306)

* add default deposit limit

* cargo upd
This commit is contained in:
Sasha Gryaznov
2023-04-26 16:20:55 +03:00
committed by GitHub
parent ad41d0e14f
commit 63076eccc7
2 changed files with 265 additions and 261 deletions
+263 -261
View File
File diff suppressed because it is too large Load Diff
@@ -18,6 +18,7 @@ pub const CONTRACTS_DEBUG_OUTPUT: bool = true;
parameter_types! { parameter_types! {
pub const DepositPerItem: Balance = deposit(1, 0); pub const DepositPerItem: Balance = deposit(1, 0);
pub const DepositPerByte: Balance = deposit(0, 1); pub const DepositPerByte: Balance = deposit(0, 1);
pub const DefaultDepositLimit: Balance = deposit(1024, 1024 * 1024);
pub MySchedule: Schedule<Runtime> = Default::default(); pub MySchedule: Schedule<Runtime> = Default::default();
} }
@@ -36,6 +37,7 @@ impl Config for Runtime {
type CallFilter = Nothing; type CallFilter = Nothing;
type DepositPerItem = DepositPerItem; type DepositPerItem = DepositPerItem;
type DepositPerByte = DepositPerByte; type DepositPerByte = DepositPerByte;
type DefaultDepositLimit = DefaultDepositLimit;
type WeightPrice = pallet_transaction_payment::Pallet<Self>; type WeightPrice = pallet_transaction_payment::Pallet<Self>;
type WeightInfo = SubstrateWeight<Self>; type WeightInfo = SubstrateWeight<Self>;
type ChainExtension = (); type ChainExtension = ();