Skip to content

Commit

Permalink
Merge pull request #89 from sora-xor/add_migrations_38
Browse files Browse the repository at this point in the history
Add migrations 38
  • Loading branch information
N1ghtStorm authored Apr 21, 2023
2 parents 5f2beeb + b943d5a commit 58e9ed8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
Binary file modified parachain-gen/src/bytes/parachain_metadata.scale
Binary file not shown.
4 changes: 2 additions & 2 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("sora_ksm"),
impl_name: create_runtime_str!("sora_ksm"),
authoring_version: 1,
spec_version: 1,
spec_version: 2,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
transaction_version: 2,
state_version: 1,
};

Expand Down
13 changes: 12 additions & 1 deletion runtime/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,18 @@
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

use crate::*;
use frame_support::{traits::OnRuntimeUpgrade, weights::Weight};
use sp_core::ecdsa;
use sp_runtime::impl_opaque_keys;
use sp_std::vec::Vec;

use crate::{AccountId, Aura, BeefyId, RuntimeBlockWeights, Session};

pub type Migrations = SessionKeysMigration;
pub type Migrations = (
pallet_xcm::migration::v1::MigrateToV1<Runtime>,
pallet_balances::migration::MigrateManyToTrackInactive<Runtime, EmptyAccountList>,
);

impl_opaque_keys! {
pub struct SessionKeysOld {
Expand Down Expand Up @@ -67,3 +71,10 @@ impl OnRuntimeUpgrade for SessionKeysMigration {
RuntimeBlockWeights::get().max_block
}
}
pub struct EmptyAccountList;

impl sp_core::Get<Vec<AccountId>> for EmptyAccountList {
fn get() -> Vec<AccountId> {
Default::default()
}
}

0 comments on commit 58e9ed8

Please sign in to comment.