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

DryRunApi.dryRunCall always produces the latest XCM version report #7413

Open
mrshiposha opened this issue Jan 31, 2025 · 1 comment
Open

Comments

@mrshiposha
Copy link
Contributor

The DryRunApi.dryRunCall doesn't know what version to use when reporting the XCM objects back to the client.

The common implementation in pallet-xcm uses the latest one. If a client is not ready to interpret the newest version, it won't be able to read the output. I ran into this when testing locally.

All client-facing APIs should use versions that a client can understand (similar to the xcmPaymentApi.queryAcceptablePaymentAssets) so that clients won't break immediately if a chain upgrades.

The same might go for the dryRunXcm.

@mrshiposha
Copy link
Contributor Author

CC @franciscoaguirre

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