From f6fbaf90884648c7d1070f487d24b4a5bce8473c Mon Sep 17 00:00:00 2001 From: Emiliano <84690100+metricaez@users.noreply.github.com> Date: Wed, 12 Feb 2025 16:35:12 -0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Francisco Aguirre --- runtime/common/src/burner_adapter.rs | 2 +- runtime/mainnet/src/xcm_config.rs | 1 + runtime/testnet/src/xcm_config.rs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/common/src/burner_adapter.rs b/runtime/common/src/burner_adapter.rs index a6962f6..1260437 100644 --- a/runtime/common/src/burner_adapter.rs +++ b/runtime/common/src/burner_adapter.rs @@ -47,7 +47,7 @@ impl> TransactAsset for BurnerAdapter what, _who, ); match Matcher::matches_fungible(what) { - Some(_) => Ok(()), + Some(_) => Ok(()), // Doing nothing burns the funds. None => Err(XcmError::AssetNotFound), } } diff --git a/runtime/mainnet/src/xcm_config.rs b/runtime/mainnet/src/xcm_config.rs index b25c946..3b9dcd1 100644 --- a/runtime/mainnet/src/xcm_config.rs +++ b/runtime/mainnet/src/xcm_config.rs @@ -96,6 +96,7 @@ pub type BridgedLocalAssetTransactor = FungibleAdapter< (), >; +/// Transactor that burns DOT received from snowbridge. pub type DotBurnerTransactor = BurnerAdapter>; /// Means for transacting assets on this chain. diff --git a/runtime/testnet/src/xcm_config.rs b/runtime/testnet/src/xcm_config.rs index 599f5bd..eae6f6d 100644 --- a/runtime/testnet/src/xcm_config.rs +++ b/runtime/testnet/src/xcm_config.rs @@ -98,6 +98,7 @@ pub type BridgedLocalAssetTransactor = FungibleAdapter< (), >; +/// Transactor that burns DOT received from snowbridge. pub type DotBurnerTransactor = BurnerAdapter>; /// Means for transacting assets on this chain.