mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
remove duplicate Issued/Burned events (#8935)
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user