Skip to content

[xcm_builder]: Do not consume msg on NotApplicable for remote exporters#1519

Merged
acatangiu merged 7 commits into
masterfrom
bko-remote-exporters
Sep 14, 2023
Merged

[xcm_builder]: Do not consume msg on NotApplicable for remote exporters#1519
acatangiu merged 7 commits into
masterfrom
bko-remote-exporters

Conversation

@bkontur

@bkontur bkontur commented Sep 12, 2023

Copy link
Copy Markdown
Contributor

Summary

Implementations of SendXcm's validate should not consume dest and/or msg parameters in case of NotApplicable error according to this. This PR aligns expected behavior for UnpaidRemoteExporter and SovereignPaidRemoteExporter.

Testing

Added remote_exporters_does_not_consume_dest_or_msg_on_not_applicable test which checks two possible cases:

  • dest is local
  • no configured exporter for dest

@bkontur bkontur added the T6-XCM This PR/Issue is related to XCM. label Sep 12, 2023
@acatangiu acatangiu marked this pull request as ready for review September 12, 2023 14:28
@acatangiu acatangiu requested a review from a team as a code owner September 12, 2023 14:28
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

None yet

Development

Successfully merging this pull request may close these issues.

4 participants