Skip to content

Commit

Permalink
Remove gateway migration (#631)
Browse files Browse the repository at this point in the history
* Remove gateway migration and bump version into 21

* Fix clippy

Co-authored-by: hacpy <hacpy.lbx@gmail.com>
  • Loading branch information
AAweidai and hacpy authored Mar 30, 2022
1 parent 40d99cd commit 7006a60
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions runtime/chainx/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,13 @@ mod migrations;

use self::constants::{currency::*, time::*};
use self::impls::{ChargeExtraFee, DealWithFees, SlowAdjustingFeeUpdate};
use self::migrations::*;

/// This runtime version.
pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("chainx"),
impl_name: create_runtime_str!("chainx-net"),
authoring_version: 1,
spec_version: 20,
spec_version: 21,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 4,
Expand Down Expand Up @@ -1203,7 +1202,7 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPallets,
CustomOnRuntimeUpgrades,
(),
>;

impl_runtime_apis! {
Expand Down
5 changes: 2 additions & 3 deletions runtime/dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,13 @@ mod migrations;

use self::constants::{currency::*, time::*};
use self::impls::{ChargeExtraFee, DealWithFees, SlowAdjustingFeeUpdate};
use self::migrations::*;

/// This runtime version.
pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("chainx"),
impl_name: create_runtime_str!("chainx-dev"),
authoring_version: 1,
spec_version: 20,
spec_version: 21,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 4,
Expand Down Expand Up @@ -1210,7 +1209,7 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPallets,
CustomOnRuntimeUpgrades,
(),
>;

impl_runtime_apis! {
Expand Down
5 changes: 2 additions & 3 deletions runtime/malan/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,13 @@ mod migrations;

use self::constants::{currency::*, time::*};
use self::impls::{ChargeExtraFee, DealWithFees, SlowAdjustingFeeUpdate};
use self::migrations::*;

/// This runtime version.
pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("chainx"),
impl_name: create_runtime_str!("chainx-malan"),
authoring_version: 1,
spec_version: 20,
spec_version: 21,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 4,
Expand Down Expand Up @@ -1210,7 +1209,7 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPallets,
CustomOnRuntimeUpgrades,
(),
>;

impl_runtime_apis! {
Expand Down

0 comments on commit 7006a60

Please sign in to comment.