mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 02:07:56 +00:00
pallet_assets : Remove event for no_op (#11023)
* remove no_op event * ensure no transferred event emitted Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
@@ -529,14 +529,8 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
|
||||
maybe_need_admin: Option<T::AccountId>,
|
||||
f: TransferFlags,
|
||||
) -> Result<(T::Balance, Option<DeadConsequence>), DispatchError> {
|
||||
// Early exist if no-op.
|
||||
// Early exit if no-op.
|
||||
if amount.is_zero() {
|
||||
Self::deposit_event(Event::Transferred {
|
||||
asset_id: id,
|
||||
from: source.clone(),
|
||||
to: dest.clone(),
|
||||
amount,
|
||||
});
|
||||
return Ok((amount, None))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user