Skip to content

Commit

Permalink
Allow all xtokens extrinsics in calamari (#1254)
Browse files Browse the repository at this point in the history
Signed-off-by: Georgi Zlatarev <georgi.zlatarev@manta.network>
  • Loading branch information
ghzlatarev authored Sep 26, 2023
1 parent f187435 commit 42ee384
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions runtime/calamari/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,6 @@ impl Contains<RuntimeCall> for BaseFilter {
| pallet_democracy::Call::cancel_proposal {..}
| pallet_democracy::Call::clear_public_proposals {..})
| RuntimeCall::Treasury(_) // Treasury calls are filtered while it is accumulating funds.
// Everything except transfer() is filtered out until it is practically needed:
| RuntimeCall::XTokens(
orml_xtokens::Call::transfer_with_fee {..}
| orml_xtokens::Call::transfer_multiasset {..})
// Filter callables from XCM pallets, we use XTokens exclusively
| RuntimeCall::XcmpQueue(_) | RuntimeCall::DmpQueue(_) => false,

Expand Down Expand Up @@ -306,10 +302,7 @@ impl Contains<RuntimeCall> for BaseFilter {
| RuntimeCall::MantaPay(_)
| RuntimeCall::MantaSbt(_)
| RuntimeCall::NameService(_)
| RuntimeCall::XTokens(orml_xtokens::Call::transfer {..}
| orml_xtokens::Call::transfer_multicurrencies {..}
| orml_xtokens::Call::transfer_multiassets {..}
| orml_xtokens::Call::transfer_multiasset_with_fee {..})
| RuntimeCall::XTokens(_)
| RuntimeCall::TransactionPause(_)
| RuntimeCall::ZenlinkProtocol(_)
| RuntimeCall::Farming(_)
Expand Down

0 comments on commit 42ee384

Please sign in to comment.