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ßenandparity-processbot authored and GitHub committed 2022-11-30 14:48:55 +00:00
1 parent abf1663a7c
commit ad12cfc044
3 files changed
+268 -256

No files matched your search

Generated
+265 -254
View File
File diff suppressed because it is too large. Load diff
@@ -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>;
}