mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 01:11:10 +00:00
Put cumulus-parachain-upgrade into the test parachain (#98)
This ensures that the crate compiles for `no_std`. Besides this, there are some fixes to the crate code itself.
This commit is contained in:
@@ -8,6 +8,7 @@ edition = "2018"
|
||||
# Substrate dependencies
|
||||
sp-inherents = { git = "https://github.com/paritytech/substrate", branch = "cumulus-branch", default-features = false }
|
||||
sp-std = { git = "https://github.com/paritytech/substrate", branch = "cumulus-branch", default-features = false }
|
||||
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "cumulus-branch", default-features = false }
|
||||
|
||||
# Polkadot dependencies
|
||||
polkadot-parachain = { git = "https://github.com/paritytech/polkadot", branch = "cumulus-branch", default-features = false }
|
||||
@@ -25,4 +26,5 @@ std = [
|
||||
"polkadot-primitives/std",
|
||||
"polkadot-parachain/std",
|
||||
"sp-inherents/std",
|
||||
"sp-runtime/std",
|
||||
]
|
||||
|
||||
@@ -24,8 +24,7 @@ use polkadot_primitives::parachain::{GlobalValidationSchedule, LocalValidationDa
|
||||
///
|
||||
/// This struct is the subset of [`ValidationParams`](polkadot_parachain::ValidationParams)
|
||||
/// which is of interest when upgrading parachain validation functions.
|
||||
#[derive(PartialEq, Eq, Encode, Decode, Clone, Copy, Default)]
|
||||
#[cfg_attr(feature = "std", derive(Debug))]
|
||||
#[derive(PartialEq, Eq, Encode, Decode, Clone, Copy, Default, sp_runtime::RuntimeDebug)]
|
||||
pub struct ValidationFunctionParams {
|
||||
/// The maximum code size permitted, in bytes.
|
||||
pub max_code_size: u32,
|
||||
|
||||
Reference in New Issue
Block a user