Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
chore(v0.9.43): runtime related fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gitsimon committed Aug 1, 2023
1 parent a38a7bc commit 739400d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
7 changes: 3 additions & 4 deletions p256-crypto/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ pub mod p256 {
use sp_runtime::traits::{IdentifyAccount, Lazy, Verify};
use sp_runtime_interface::pass_by::PassByInner;

#[cfg(feature = "std")]
use sp_core::crypto::{Ss58Codec, DeriveError};
use sp_core::crypto::{
ByteArray, CryptoType, CryptoTypeId, Derive, Public as TraitPublic,
UncheckedFrom,
ByteArray, CryptoType, CryptoTypeId, Derive, Public as TraitPublic, UncheckedFrom,
};
#[cfg(feature = "std")]
use sp_core::crypto::{DeriveError, Ss58Codec};

#[cfg(feature = "std")]
use sp_core::{
Expand Down
1 change: 1 addition & 0 deletions pallets/assets-manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,6 @@ runtime-benchmarks = [
"sp-io",
"pallet-balances/runtime-benchmarks",
"pallet-assets/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
]
try-runtime = ["frame-support/try-runtime"]
2 changes: 1 addition & 1 deletion pallets/hyperdrive-outgoing/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ pub struct TargetChainProofLeaf {

/// Merkle Mountain Range operation error.
#[cfg_attr(feature = "std", derive(thiserror::Error))]
#[derive(RuntimeDebug, codec::Encode, codec::Decode, PartialEq, Eq)]
#[derive(RuntimeDebug, codec::Encode, codec::Decode, PartialEq, Eq, TypeInfo)]
pub enum MMRError {
/// Error while pushing new node.
#[cfg_attr(feature = "std", error("Error pushing new node"))]
Expand Down
1 change: 1 addition & 0 deletions pallets/marketplace/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ runtime-benchmarks = [
"pallet-acurast/runtime-benchmarks",
"pallet-acurast-assets-manager/runtime-benchmarks",
"pallet-acurast-processor-manager/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
]

std = [
Expand Down
2 changes: 1 addition & 1 deletion pallets/marketplace/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ impl<T: Config> MarketplaceHooks<T> for () {

/// Runtime API error.
#[cfg_attr(feature = "std", derive(thiserror::Error))]
#[derive(RuntimeDebug, codec::Encode, codec::Decode, PartialEq, Eq)]
#[derive(RuntimeDebug, codec::Encode, codec::Decode, PartialEq, Eq, TypeInfo)]
pub enum RuntimeApiError {
/// Error when filtering matching sources failed.
#[cfg_attr(feature = "std", error("Filtering matching sources failed."))]
Expand Down
9 changes: 9 additions & 0 deletions pallets/proxy/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@ pub mod acurast_runtime {
type SovereignAccountOf = LocationToAccountId;
type MaxLockers = ConstU32<8>;
type WeightInfo = pallet_xcm::TestWeightInfo;
type AdminOrigin = EnsureRoot<AccountId>;
type MaxRemoteLockConsumers = ConstU32<0>;
type RemoteLockConsumerIdentifier = ();
#[cfg(feature = "runtime-benchmarks")]
type ReachableDest = ReachableDest;
}
Expand Down Expand Up @@ -591,6 +594,9 @@ pub mod proxy_runtime {
type SovereignAccountOf = LocationToAccountId;
type MaxLockers = ConstU32<8>;
type WeightInfo = pallet_xcm::TestWeightInfo;
type AdminOrigin = EnsureRoot<AccountId>;
type MaxRemoteLockConsumers = ConstU32<0>;
type RemoteLockConsumerIdentifier = ();
#[cfg(feature = "runtime-benchmarks")]
type ReachableDest = ReachableDest;
}
Expand Down Expand Up @@ -839,6 +845,9 @@ pub mod relay_chain {
type SovereignAccountOf = LocationToAccountId;
type MaxLockers = ConstU32<8>;
type WeightInfo = pallet_xcm::TestWeightInfo;
type AdminOrigin = EnsureRoot<AccountId>;
type MaxRemoteLockConsumers = ConstU32<0>;
type RemoteLockConsumerIdentifier = ();
#[cfg(feature = "runtime-benchmarks")]
type ReachableDest = ReachableDest;
}
Expand Down

0 comments on commit 739400d

Please sign in to comment.