git.delta.rocks / unique-network / refs/commits / 3ba14ab26c19

difftreelog

fix cargo fmt

Daniel Shiposha2023-03-27parent: #4e84fdd.patch.diff
in: master

6 files changed

modifiedpallets/configuration/src/lib.rsdiffbeforeafterboth

no syntactic changes

modifiedruntime/common/tests/mod.rsdiffbeforeafterboth

no syntactic changes

modifiedruntime/common/tests/xcm.rsdiffbeforeafterboth
1616
17use xcm::{17use xcm::{
18 VersionedXcm,18 VersionedXcm,
19 latest::{prelude::*, Error}19 latest::{prelude::*, Error},
20};20};
21use codec::Encode;21use codec::Encode;
22use crate::{Runtime, RuntimeCall, RuntimeOrigin, RuntimeEvent, PolkadotXcm};22use crate::{Runtime, RuntimeCall, RuntimeOrigin, RuntimeEvent, PolkadotXcm};
23use super::{new_test_ext, last_events, AccountId};23use super::{new_test_ext, last_events, AccountId};
24use frame_support::{24use frame_support::{pallet_prelude::Weight};
25 pallet_prelude::Weight,
26};
2725
28const ALICE: AccountId = AccountId::new([0u8; 32]);26const ALICE: AccountId = AccountId::new([0u8; 32]);
29const BOB: AccountId = AccountId::new([1u8; 32]);27const BOB: AccountId = AccountId::new([1u8; 32]);
3028
31const INITIAL_BALANCE: u128 = 1000000000000000000_0000; // 1000 UNQ 29const INITIAL_BALANCE: u128 = 1000000000000000000_0000; // 1000 UNQ
3230
33#[test]31#[test]
34pub fn xcm_transact_is_forbidden() {32pub fn xcm_transact_is_forbidden() {
54 match xcm_event {53 match xcm_event {
55 RuntimeEvent::PolkadotXcm(54 RuntimeEvent::PolkadotXcm(pallet_xcm::Event::<Runtime>::Attempted(
56 pallet_xcm::Event::<Runtime>::Attempted(
57 Outcome::Incomplete(_weight, Error::NoPermission)55 Outcome::Incomplete(_weight, Error::NoPermission),
58 )56 )) => { /* Pass */ }
59 ) => { /* Pass */ },
60 _ => panic!(57 _ => panic!(
61 "Expected PolkadotXcm.Attempted(Incomplete(_weight, NoPermission)),\58 "Expected PolkadotXcm.Attempted(Incomplete(_weight, NoPermission)),\
62 found: {xcm_event:#?}"59 found: {xcm_event:#?}"
63 )60 ),
64 }61 }
65 });62 });
66}63}
modifiedruntime/opal/src/xcm_barrier.rsdiffbeforeafterboth
1919
20pub type Barrier = (20pub type Barrier = (TakeWeightCredit, AllowTopLevelPaidExecutionFrom<Everything>);
21 TakeWeightCredit,
22 AllowTopLevelPaidExecutionFrom<Everything>,
23);
2421
modifiedruntime/quartz/src/xcm_barrier.rsdiffbeforeafterboth
1616
17use frame_support::{17use frame_support::{match_types, traits::Everything};
18 match_types,
19 traits::Everything,
20};
21use xcm::latest::{Junctions::*, MultiLocation};18use xcm::latest::{Junctions::*, MultiLocation};
22use xcm_builder::{19use xcm_builder::{
modifiedruntime/unique/src/xcm_barrier.rsdiffbeforeafterboth
1616
17use frame_support::{17use frame_support::{match_types, traits::Everything};
18 match_types,
19 traits::Everything,
20};
21use xcm::latest::{Junctions::*, MultiLocation};18use xcm::latest::{Junctions::*, MultiLocation};
22use xcm_builder::{19use xcm_builder::{