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

[xcm] Setup filters/mock for xcm-executor tests #6271

Open
bkontur opened this issue Oct 29, 2024 · 0 comments
Open

[xcm] Setup filters/mock for xcm-executor tests #6271

bkontur opened this issue Oct 29, 2024 · 0 comments
Labels
T6-XCM This PR/Issue is related to XCM.

Comments

@bkontur
Copy link
Contributor

bkontur commented Oct 29, 2024

Relates to: #5971 (comment)

Change xcm-executor/src/lib.rs:

-		#[cfg(not(any(test, feature = "runtime-benchmarks")))]
+		#[cfg(not(feature = "runtime-benchmarks")))]
		ensure!(
			Config::IsTeleporter::contains(&asset, &dest),
			XcmError::UntrustedTeleportLocation
		);

and

-		#[cfg(not(any(test, feature = "runtime-benchmarks")))]
+		#[cfg(not(feature = "runtime-benchmarks")))]
		for asset in assets.assets_iter() {
			ensure!(
				Config::IsReserve::contains(&asset, &reserve),
				XcmError::UntrustedReserveLocation
			);
		}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T6-XCM This PR/Issue is related to XCM.
Projects
Status: No status
Development

No branches or pull requests

1 participant