Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
32b79365
Commit
32b79365
authored
3 years ago
by
joe petrowski
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
remove duplicate Issued/Burned events (#8935)
parent
444d4e20
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/frame/assets/src/lib.rs
+2
-4
2 additions, 4 deletions
substrate/frame/assets/src/lib.rs
with
2 additions
and
4 deletions
substrate/frame/assets/src/lib.rs
+
2
−
4
View file @
32b79365
...
...
@@ -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 `
Destroy
ed` event when successful.
/// Emits `
Issu
ed` 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
(())
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment