Companion for contracts: Replace cargo feature unstable-interface with config (#1916)

* contracts: Add `UnsafeUnstableInterface`

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

Co-authored-by: parity-processbot <>
This commit is contained in:
Alexander Theißen
2022-11-30 14:48:55 +00:00
committed by GitHub
parent ad08445268
commit 7350107f0b
3 changed files with 268 additions and 256 deletions
@@ -47,7 +47,7 @@ pallet-transaction-payment = { git = "https://github.com/paritytech/substrate",
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
pallet-utility = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
pallet-contracts = { git = "https://github.com/paritytech/substrate", default-features = false, features = ["unstable-interface"], branch = "master" }
pallet-contracts = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
pallet-contracts-primitives = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
# Polkadot
@@ -4,7 +4,7 @@ use crate::{
};
use frame_support::{
parameter_types,
traits::{ConstU32, Nothing},
traits::{ConstBool, ConstU32, Nothing},
weights::Weight,
};
use pallet_contracts::{
@@ -57,4 +57,5 @@ impl Config for Runtime {
type AddressGenerator = DefaultAddressGenerator;
type MaxCodeLen = ConstU32<{ 128 * 1024 }>;
type MaxStorageKeyLen = ConstU32<128>;
type UnsafeUnstableInterface = ConstBool<true>;
}