diff --git a/lib-serml/tokens/currencies/src/mock.rs b/lib-serml/tokens/currencies/src/mock.rs index f7efc3593..7fa066603 100644 --- a/lib-serml/tokens/currencies/src/mock.rs +++ b/lib-serml/tokens/currencies/src/mock.rs @@ -50,7 +50,6 @@ pub const SETEUR: CurrencyId = CurrencyId::Token(TokenSymbol::SETEUR); pub const SETGBP: CurrencyId = CurrencyId::Token(TokenSymbol::SETGBP); pub const SETCHF: CurrencyId = CurrencyId::Token(TokenSymbol::SETCHF); pub const SETSAR: CurrencyId = CurrencyId::Token(TokenSymbol::SETSAR); -pub const BTC: CurrencyId = CurrencyId::Token(TokenSymbol::RENBTC); parameter_types! { @@ -109,6 +108,7 @@ impl tokens::Config for Runtime { type OnDust = tokens::TransferDust; type WeightInfo = (); type MaxLocks = MaxLocks; + type DustRemovalWhitelist = (); } pub const NATIVE_CURRENCY_ID: CurrencyId = CurrencyId::Token(TokenSymbol::DNAR); @@ -238,7 +238,7 @@ thread_local! { pub struct MockPriceSource; impl MockPriceSource { - pub fn set_relative_price(price: Option) { + pub fn _set_relative_price(price: Option) { RELATIVE_PRICE.with(|v| *v.borrow_mut() = price); } } diff --git a/primitives/src/currency.rs b/primitives/src/currency.rs index 5d307110d..906469185 100644 --- a/primitives/src/currency.rs +++ b/primitives/src/currency.rs @@ -243,7 +243,7 @@ create_currency_id! { SETCHF("SetFranc", 12) = 6, SETSAR("SetRiyal", 12) = 7, // Foreign Currencies - RENBTC("Ren Bitcoin", 8) = 8, + RENBTC("RenBTC", 8) = 8, } }