Enable HDX transfers
@@ -95,7 +95,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("hydradx"),
impl_name: create_runtime_str!("hydradx"),
authoring_version: 1,
- spec_version: 109,
+ spec_version: 110,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
@@ -171,15 +171,11 @@ impl<T: frame_system::Config> BlockNumberProvider for RelayChainBlockNumberProvi
}
}
-pub struct TransfersDisabled;
-impl Contains<Call> for TransfersDisabled {
+pub struct CallFilter;
+impl Contains<Call> for CallFilter {
fn contains(call: &Call) -> bool {
#[allow(clippy::match_like_matches_macro)]
match call {
- Call::Balances(_) => false,
- Call::Currencies(_) => false,
- Call::Tokens(_) => false,
- Call::XTokens(_) => false,
Call::PolkadotXcm(_) => false,
Call::OrmlXcm(_) => false,
_ => true,
@@ -215,7 +211,7 @@ parameter_types! {
impl frame_system::Config for Runtime {
/// The basic call filter to use in dispatchable.
- type BaseCallFilter = TransfersDisabled;
+ type BaseCallFilter = CallFilter;
type BlockWeights = BlockWeights;
type BlockLength = BlockLength;
/// The ubiquitous origin type.
