Skip to content

Commit

Permalink
exclude SRI from is_allowed check
Browse files Browse the repository at this point in the history
  • Loading branch information
akildemir committed Aug 2, 2024
1 parent bb5fd37 commit dd9aeb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion substrate/coins/pallet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ pub mod pallet {
///
/// Errors if any amount overflows.
pub fn mint(to: Public, balance: Balance) -> Result<(), Error<T, I>> {
if !T::AllowMint::is_allowed(&balance) {
if balance.coin != Coin::Serai && !T::AllowMint::is_allowed(&balance) {
Err(Error::<T, I>::MintNotAllowed)?;
}

Expand Down

0 comments on commit dd9aeb1

Please sign in to comment.