Skip to content

Commit

Permalink
Support old config (deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
echevrier committed Jul 5, 2023
1 parent 315818e commit b38528d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions primitives/src/config/asset_runtime_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@ impl Config for AssetRuntimeConfig {
/// A struct representing the signed extra and additional parameters required
/// to construct a transaction and pay in asset fees.
pub type AssetTipExtrinsicParams<T> = GenericExtrinsicParams<T, AssetTip<<T as Config>::Balance>>;

#[deprecated(
since = "0.14.0",
note = "Please use `AssetRuntimeConfig` instead, this will be removed in the next release."
)]
pub type SubstrateKitchensinkConfig = AssetRuntimeConfig;
6 changes: 6 additions & 0 deletions primitives/src/config/default_runtime_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ pub type DefaultRuntimeConfig =
/// A struct representing the signed extra and additional parameters required
/// to construct a transaction and pay in token fees.
pub type PlainTipExtrinsicParams<T> = GenericExtrinsicParams<T, PlainTip<<T as Config>::Balance>>;

#[deprecated(
since = "0.14.0",
note = "Please use `DefaultRuntimeConfig` instead, this will be removed in the next release."
)]
pub type PolkadotConfig = DefaultRuntimeConfig;

0 comments on commit b38528d

Please sign in to comment.