Companion for contracts WeightV2 (#1726)

* Remove `ContractAccessWeight`

* update lockfile for {"polkadot", "substrate"}

* update lockfile for {"substrate", "polkadot"}

Co-authored-by: parity-processbot <>
This commit is contained in:
Alexander Theißen
2022-10-05 15:59:26 +02:00
committed by GitHub
parent 89095f9345
commit 0a92a71aa5
2 changed files with 352 additions and 273 deletions
+351 -271
View File
File diff suppressed because it is too large Load Diff
@@ -9,7 +9,7 @@ use frame_support::{
};
use pallet_contracts::{
weights::{SubstrateWeight, WeightInfo},
Config, DefaultAddressGenerator, DefaultContractAccessWeight, Frame, Schedule,
Config, DefaultAddressGenerator, Frame, Schedule,
};
pub use parachains_common::AVERAGE_ON_INITIALIZE_RATIO;
@@ -55,7 +55,6 @@ impl Config for Runtime {
type Schedule = MySchedule;
type CallStack = [Frame<Self>; 31];
type AddressGenerator = DefaultAddressGenerator;
type ContractAccessWeight = DefaultContractAccessWeight<RuntimeBlockWeights>;
type MaxCodeLen = ConstU32<{ 128 * 1024 }>;
type MaxStorageKeyLen = ConstU32<128>;
}