From 6a63f282a5c0fb608569137ed464a23583d2d7de Mon Sep 17 00:00:00 2001 From: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Date: Fri, 28 May 2021 21:22:49 +0200 Subject: [PATCH] remove duplicate Issued/Burned events (#8935) --- frame/assets/src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frame/assets/src/lib.rs b/frame/assets/src/lib.rs index ccbe1920e9974..e81fca20db81b 100644 --- a/frame/assets/src/lib.rs +++ b/frame/assets/src/lib.rs @@ -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(()) }