diff --git a/core/src/config/polkadot.rs b/core/src/config/polkadot.rs index 500ea80521..7f4e3a88f9 100644 --- a/core/src/config/polkadot.rs +++ b/core/src/config/polkadot.rs @@ -11,6 +11,9 @@ pub use crate::utils::{AccountId32, MultiAddress, MultiSignature}; pub use primitive_types::{H256, U256}; /// Default set of commonly used types by Polkadot nodes. +// Note: The trait implementations exist just to make life easier, +// but shouldn't strictly be necessary since users can't instantiate this type. +#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] pub enum PolkadotConfig {} impl Config for PolkadotConfig { diff --git a/core/src/config/substrate.rs b/core/src/config/substrate.rs index 9c7ff96e9e..ef71f5a54a 100644 --- a/core/src/config/substrate.rs +++ b/core/src/config/substrate.rs @@ -16,6 +16,9 @@ pub use primitive_types::{H256, U256}; /// Default set of commonly used types by Substrate runtimes. // Note: We only use this at the type level, so it should be impossible to // create an instance of it. +// The trait implementations exist just to make life easier, +// but shouldn't strictly be necessary since users can't instantiate this type. +#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] pub enum SubstrateConfig {} impl Config for SubstrateConfig {