Switch types to use RuntimeDebug instead of gated Debug (#4652)

* Switch types to use `RuntimeDebug` instead of gated `Debug`

This is useful for when you want to debug in wasm and enable the
`force-debug` feature of `sp-debug-derive`.

* Fixes

* 🤦
This commit is contained in:
Bastian Köcher
2022-01-11 12:28:48 +01:00
committed by GitHub
parent 185e301fdd
commit fce5872698
3 changed files with 64 additions and 66 deletions
+2 -2
View File
@@ -113,8 +113,8 @@ impl sp_std::fmt::LowerHex for ValidationCodeHash {
/// Parachain block data.
///
/// Contains everything required to validate para-block, may contain block and witness data.
#[derive(PartialEq, Eq, Clone, Encode, Decode, derive_more::From, TypeInfo)]
#[cfg_attr(feature = "std", derive(Serialize, Deserialize, Debug, MallocSizeOf))]
#[derive(PartialEq, Eq, Clone, Encode, Decode, derive_more::From, TypeInfo, RuntimeDebug)]
#[cfg_attr(feature = "std", derive(Serialize, Deserialize, MallocSizeOf))]
pub struct BlockData(#[cfg_attr(feature = "std", serde(with = "bytes"))] pub Vec<u8>);
/// Unique identifier of a parachain.