Skip to content

Commit

Permalink
remove block xcm calls
Browse files Browse the repository at this point in the history
  • Loading branch information
gitofdeepanshu committed Oct 12, 2023
1 parent bd31497 commit 8b44eae
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 22 deletions.
2 changes: 1 addition & 1 deletion precompiles/xcm/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ mod xcm_old_interface_test {
])
.write(H256::repeat_byte(0xF1))
.write(false)
.write(U256::from(1_u64)) // parachain id should be
.write(U256::from(1_u64))
.write(U256::from(0_u64))
.build(),
)
Expand Down
7 changes: 0 additions & 7 deletions runtime/astar/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,6 @@ impl Contains<RuntimeCall> for BaseFilter {

_ => true,
},
// We don't allow xcm assets transfer functions from `pallet-xcm`
// use orml_xtokens for token transfers using xcm
RuntimeCall::PolkadotXcm(method) => match method {
pallet_xcm::Call::limited_reserve_transfer_assets { .. }
| pallet_xcm::Call::reserve_transfer_assets { .. } => false,
_ => true,
},
// These modules are not allowed to be called by transactions:
// To leave collator just shutdown it, next session funds will be released
// Other modules should works:
Expand Down
7 changes: 0 additions & 7 deletions runtime/shibuya/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,6 @@ impl Contains<RuntimeCall> for BaseFilter {
// registering the asset location should be good enough for users, any change can be handled via issue ticket or help request
_ => false,
},
// We don't allow xcm assets transfer functions from `pallet-xcm`
// use orml_xtokens for token transfers using xcm
RuntimeCall::PolkadotXcm(method) => match method {
pallet_xcm::Call::limited_reserve_transfer_assets { .. }
| pallet_xcm::Call::reserve_transfer_assets { .. } => false,
_ => true,
},
// These modules are not allowed to be called by transactions:
// Other modules should works:
_ => true,
Expand Down
7 changes: 0 additions & 7 deletions runtime/shiden/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,6 @@ impl Contains<RuntimeCall> for BaseFilter {

_ => true,
},
// We don't allow xcm assets transfer functions from `pallet-xcm`
// use orml_xtokens for token transfers using xcm
RuntimeCall::PolkadotXcm(method) => match method {
pallet_xcm::Call::limited_reserve_transfer_assets { .. }
| pallet_xcm::Call::reserve_transfer_assets { .. } => false,
_ => true,
},
// These modules are not allowed to be called by transactions:
// To leave collator just shutdown it, next session funds will be released
// Other modules should works:
Expand Down

0 comments on commit 8b44eae

Please sign in to comment.