mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +00:00
contracts: Move Schedule from Storage to Config (#8773)
* Move `Schedule` from Storage to Config * Updated CHANGELOG * Fix nits from review * Fix migration * Print the debug buffer as tracing message * Use `debug` instead of `trace` and update README * Add additional assert to test * Rename `schedule_version` to `instruction_weights_version` * Fixed typo * Added more comments to wat fixtures * Add clarification for the `debug_message` field
This commit is contained in:
committed by
GitHub
parent
3c0270fe57
commit
1ac95b6ba6
@@ -793,7 +793,7 @@ parameter_types! {
|
||||
<Runtime as pallet_contracts::Config>::WeightInfo::on_initialize_per_queue_item(1) -
|
||||
<Runtime as pallet_contracts::Config>::WeightInfo::on_initialize_per_queue_item(0)
|
||||
)) / 5) as u32;
|
||||
pub MaxCodeSize: u32 = 128 * 1024;
|
||||
pub Schedule: pallet_contracts::Schedule<Runtime> = Default::default();
|
||||
}
|
||||
|
||||
impl pallet_contracts::Config for Runtime {
|
||||
@@ -810,13 +810,12 @@ impl pallet_contracts::Config for Runtime {
|
||||
type RentFraction = RentFraction;
|
||||
type SurchargeReward = SurchargeReward;
|
||||
type CallStack = [pallet_contracts::Frame<Self>; 31];
|
||||
type MaxValueSize = MaxValueSize;
|
||||
type WeightPrice = pallet_transaction_payment::Module<Self>;
|
||||
type WeightInfo = pallet_contracts::weights::SubstrateWeight<Self>;
|
||||
type ChainExtension = ();
|
||||
type DeletionQueueDepth = DeletionQueueDepth;
|
||||
type DeletionWeightLimit = DeletionWeightLimit;
|
||||
type MaxCodeSize = MaxCodeSize;
|
||||
type Schedule = Schedule;
|
||||
}
|
||||
|
||||
impl pallet_sudo::Config for Runtime {
|
||||
@@ -1114,7 +1113,7 @@ construct_runtime!(
|
||||
TechnicalMembership: pallet_membership::<Instance1>::{Pallet, Call, Storage, Event<T>, Config<T>},
|
||||
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config, Event, ValidateUnsigned},
|
||||
Treasury: pallet_treasury::{Pallet, Call, Storage, Config, Event<T>},
|
||||
Contracts: pallet_contracts::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Contracts: pallet_contracts::{Pallet, Call, Storage, Event<T>},
|
||||
Sudo: pallet_sudo::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
ImOnline: pallet_im_online::{Pallet, Call, Storage, Event<T>, ValidateUnsigned, Config<T>},
|
||||
AuthorityDiscovery: pallet_authority_discovery::{Pallet, Call, Config},
|
||||
@@ -1354,7 +1353,7 @@ impl_runtime_apis! {
|
||||
gas_limit: u64,
|
||||
input_data: Vec<u8>,
|
||||
) -> pallet_contracts_primitives::ContractExecResult {
|
||||
Contracts::bare_call(origin, dest, value, gas_limit, input_data)
|
||||
Contracts::bare_call(origin, dest, value, gas_limit, input_data, true)
|
||||
}
|
||||
|
||||
fn instantiate(
|
||||
@@ -1366,7 +1365,7 @@ impl_runtime_apis! {
|
||||
salt: Vec<u8>,
|
||||
) -> pallet_contracts_primitives::ContractInstantiateResult<AccountId, BlockNumber>
|
||||
{
|
||||
Contracts::bare_instantiate(origin, endowment, gas_limit, code, data, salt, true)
|
||||
Contracts::bare_instantiate(origin, endowment, gas_limit, code, data, salt, true, true)
|
||||
}
|
||||
|
||||
fn get_storage(
|
||||
|
||||
Reference in New Issue
Block a user