Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com>
  • Loading branch information
metricaez and franciscoaguirre authored Feb 12, 2025
1 parent f3502c2 commit f6fbaf9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/common/src/burner_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl<Matcher: MatchesFungible<Balance>> TransactAsset for BurnerAdapter<Matcher>
what, _who,
);
match Matcher::matches_fungible(what) {
Some(_) => Ok(()),
Some(_) => Ok(()), // Doing nothing burns the funds.
None => Err(XcmError::AssetNotFound),
}
}
Expand Down
1 change: 1 addition & 0 deletions runtime/mainnet/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ pub type BridgedLocalAssetTransactor = FungibleAdapter<
(),
>;

/// Transactor that burns DOT received from snowbridge.
pub type DotBurnerTransactor = BurnerAdapter<IsConcrete<RelayLocation>>;

/// Means for transacting assets on this chain.
Expand Down
1 change: 1 addition & 0 deletions runtime/testnet/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ pub type BridgedLocalAssetTransactor = FungibleAdapter<
(),
>;

/// Transactor that burns DOT received from snowbridge.
pub type DotBurnerTransactor = BurnerAdapter<IsConcrete<RelayLocation>>;

/// Means for transacting assets on this chain.
Expand Down

0 comments on commit f6fbaf9

Please sign in to comment.