Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable XCM filters #882

Open
jak-pan opened this issue Jul 29, 2024 · 0 comments
Open

Disable XCM filters #882

jak-pan opened this issue Jul 29, 2024 · 0 comments

Comments

@jak-pan
Copy link
Contributor

jak-pan commented Jul 29, 2024

As of Polkadot 1.x.x (will need to check exactly) we no longer need to have XCM filters present, let's disable to allow custom integrations.

fn allowed_or_recurse<RuntimeCall>(inst: &Instruction<RuntimeCall>) -> Either<bool, &Xcm<()>> {
match inst {
ClearOrigin
| ExchangeAsset { .. }
| WithdrawAsset(..)
| TransferAsset { .. }
| DepositAsset { .. }
| ExpectAsset(..)
| SetFeesMode { .. }
| BuyExecution { .. } => Either::Left(true),
InitiateReserveWithdraw { xcm, .. } | DepositReserveAsset { xcm, .. } | TransferReserveAsset { xcm, .. } => {
Either::Right(xcm)
}
_ => Either::Left(false),
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant