Companion for substrate#11501 (#1404)

* Companion for substrate#11501

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

Co-authored-by: parity-processbot <>
This commit is contained in:
Alexander Gryaznov
2022-06-23 15:48:13 +03:00
committed by GitHub
parent 880496c7cc
commit 4bb9b610f4
3 changed files with 353 additions and 348 deletions
Generated
+351 -347
View File
File diff suppressed because it is too large Load Diff
@@ -59,6 +59,7 @@ impl Config for Runtime {
type ContractAccessWeight = DefaultContractAccessWeight<RuntimeBlockWeights>; type ContractAccessWeight = DefaultContractAccessWeight<RuntimeBlockWeights>;
type MaxCodeLen = ConstU32<{ 128 * 1024 }>; type MaxCodeLen = ConstU32<{ 128 * 1024 }>;
type RelaxedMaxCodeLen = ConstU32<{ 256 * 1024 }>; type RelaxedMaxCodeLen = ConstU32<{ 256 * 1024 }>;
type MaxStorageKeyLen = ConstU32<128>;
} }
pub struct Migrations; pub struct Migrations;
@@ -536,7 +536,7 @@ impl pallet_contracts_rpc_runtime_api::ContractsApi<Block, AccountId, Balance, B
fn get_storage( fn get_storage(
address: AccountId, address: AccountId,
key: [u8; 32], key: Vec<u8>,
) -> pallet_contracts_primitives::GetStorageResult { ) -> pallet_contracts_primitives::GetStorageResult {
Contracts::get_storage(address, key) Contracts::get_storage(address, key)
} }