Skip to content
Snippets Groups Projects
Commit 32b79365 authored by joe petrowski's avatar joe petrowski Committed by GitHub
Browse files

remove duplicate Issued/Burned events (#8935)

parent 444d4e20
No related merge requests found
......@@ -525,7 +525,7 @@ pub mod pallet {
/// - `beneficiary`: The account to be credited with the minted assets.
/// - `amount`: The amount of the asset to be minted.
///
/// Emits `Destroyed` event when successful.
/// Emits `Issued` event when successful.
///
/// Weight: `O(1)`
/// Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`.
......@@ -539,7 +539,6 @@ pub mod pallet {
let origin = ensure_signed(origin)?;
let beneficiary = T::Lookup::lookup(beneficiary)?;
Self::do_mint(id, &beneficiary, amount, Some(origin))?;
Self::deposit_event(Event::Issued(id, beneficiary, amount));
Ok(())
}
......@@ -569,8 +568,7 @@ pub mod pallet {
let who = T::Lookup::lookup(who)?;
let f = DebitFlags { keep_alive: false, best_effort: true };
let burned = Self::do_burn(id, &who, amount, Some(origin), f)?;
Self::deposit_event(Event::Burned(id, who, burned));
let _ = Self::do_burn(id, &who, amount, Some(origin), f)?;
Ok(())
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment