mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-04-28 09:47:55 +00:00
Upgrade generic-template to polkadot-stable2412 (#401)
This commit is contained in:
@@ -25,7 +25,7 @@ mod runtime_tests {
|
||||
constants::{currency::*, *},
|
||||
BlockNumber, Runtime,
|
||||
};
|
||||
use sp_runtime::{create_runtime_str, Perbill};
|
||||
use sp_runtime::Perbill;
|
||||
use sp_version::RuntimeVersion;
|
||||
use xcm::latest::prelude::BodyId;
|
||||
|
||||
@@ -34,14 +34,14 @@ mod runtime_tests {
|
||||
assert_eq!(
|
||||
VERSION,
|
||||
RuntimeVersion {
|
||||
spec_name: create_runtime_str!("template-parachain"),
|
||||
impl_name: create_runtime_str!("template-parachain"),
|
||||
spec_name: std::borrow::Cow::Borrowed("template-parachain"),
|
||||
impl_name: std::borrow::Cow::Borrowed("template-parachain"),
|
||||
authoring_version: 1,
|
||||
spec_version: 1,
|
||||
impl_version: 0,
|
||||
apis: generic_runtime_template::apis::RUNTIME_API_VERSIONS,
|
||||
transaction_version: 1,
|
||||
state_version: 1,
|
||||
system_version: 1,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ fn dmp() {
|
||||
Parachain(1),
|
||||
Xcm(vec![Transact {
|
||||
origin_kind: OriginKind::SovereignAccount,
|
||||
require_weight_at_most: Weight::from_parts(INITIAL_BALANCE as u64, 1024 * 1024),
|
||||
fallback_max_weight: Some(Weight::from_parts(INITIAL_BALANCE as u64, 1024 * 1024)),
|
||||
call: remark.encode().into(),
|
||||
}]),
|
||||
));
|
||||
@@ -58,7 +58,7 @@ fn ump() {
|
||||
Parent,
|
||||
Xcm(vec![Transact {
|
||||
origin_kind: OriginKind::SovereignAccount,
|
||||
require_weight_at_most: Weight::from_parts(INITIAL_BALANCE as u64, 1024 * 1024),
|
||||
fallback_max_weight: Some(Weight::from_parts(INITIAL_BALANCE as u64, 1024 * 1024)),
|
||||
call: remark.encode().into(),
|
||||
}]),
|
||||
));
|
||||
@@ -86,7 +86,7 @@ fn xcmp() {
|
||||
(Parent, Parachain(2)),
|
||||
Xcm(vec![Transact {
|
||||
origin_kind: OriginKind::SovereignAccount,
|
||||
require_weight_at_most: Weight::from_parts(INITIAL_BALANCE as u64, 1024 * 1024),
|
||||
fallback_max_weight: Some(Weight::from_parts(INITIAL_BALANCE as u64, 1024 * 1024)),
|
||||
call: remark.encode().into(),
|
||||
}]),
|
||||
));
|
||||
@@ -118,7 +118,7 @@ fn remote_locking_and_unlocking() {
|
||||
Relay::execute_with(|| {
|
||||
use pallet_balances::{BalanceLock, Reasons};
|
||||
assert_eq!(
|
||||
relay_chain::Balances::locks(child_account_id(2)),
|
||||
relay_chain::Balances::locks(&child_account_id(2)),
|
||||
vec![BalanceLock { id: *b"py/xcmlk", amount: locked_amount, reasons: Reasons::All }]
|
||||
);
|
||||
});
|
||||
@@ -146,7 +146,7 @@ fn remote_locking_and_unlocking() {
|
||||
use pallet_balances::{BalanceLock, Reasons};
|
||||
// Lock is reduced
|
||||
assert_eq!(
|
||||
relay_chain::Balances::locks(child_account_id(2)),
|
||||
relay_chain::Balances::locks(&child_account_id(2)),
|
||||
vec![BalanceLock {
|
||||
id: *b"py/xcmlk",
|
||||
amount: locked_amount - 50,
|
||||
|
||||
Reference in New Issue
Block a user