forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevents EthereumBlobExporter from consuming dest when returning NotA…
…pplicable (paritytech#5789) # Description The EthereumBlobExporter consumes the `dest` parameter when the destination is not `Here`. Subsequent exporters will receive a `None` value for the destination instead of the original destination value, which is incorrect. Closes paritytech#5788 ## Integration Minor fix related to the exporter behaviour. ## Review Notes Verified that tests `exporter_validate_with_invalid_dest_does_not_alter_destination` and `exporter_validate_with_invalid_universal_source_does_not_alter_universal_source` fail without the fix in the exporter. --------- Co-authored-by: Adrian Catangiu <[email protected]>
- Loading branch information
1 parent
88570c2
commit 111b244
Showing
3 changed files
with
141 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 | ||
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json | ||
|
||
title: Prevents EthereumBlobExporter from consuming parameters when returning NotApplicable | ||
|
||
doc: | ||
- audience: Node Dev | ||
description: | | ||
When the EthereumBlobExporter returned a NotApplicable error, it consumed parameters `universal_source`, | ||
`destination` and `message`. As a result, subsequent exporters could not use these values. This PR corrects | ||
this incorrect behaviour. It also changes error type from `Unroutable` to `NotApplicable` when the global consensus | ||
system cannot be extracted from the `universal_source`, or when the source location cannot be converted to an agent | ||
ID. Lastly, it changes the error type from `MissingArgument` to `NotApplicable` when the parachain ID cannot be | ||
extracted from the location. These changes should have no effect - it is purely to correct behvaiour should | ||
multiple exporters be used. | ||
|
||
crates: | ||
- name: snowbridge-router-primitives | ||
bump: patch |