From dd9aeb160bf228183d28981ab42713302c51b79c Mon Sep 17 00:00:00 2001 From: akildemir Date: Fri, 2 Aug 2024 13:18:37 +0300 Subject: [PATCH] exclude SRI from is_allowed check --- substrate/coins/pallet/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substrate/coins/pallet/src/lib.rs b/substrate/coins/pallet/src/lib.rs index 510e0edfb..1dd686340 100644 --- a/substrate/coins/pallet/src/lib.rs +++ b/substrate/coins/pallet/src/lib.rs @@ -159,7 +159,7 @@ pub mod pallet { /// /// Errors if any amount overflows. pub fn mint(to: Public, balance: Balance) -> Result<(), Error> { - if !T::AllowMint::is_allowed(&balance) { + if balance.coin != Coin::Serai && !T::AllowMint::is_allowed(&balance) { Err(Error::::MintNotAllowed)?; }