Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Emit events related to asset mutations #14099

Merged
merged 4 commits into from
May 9, 2023

Conversation

KiChjang
Copy link
Contributor

@KiChjang KiChjang commented May 9, 2023

In one of the XCM integration tests, it was discovered that the fungibles::regular::Mutate::transfer implementation of the Assets pallet didn't fire off any events, causing the test to fail, but the asset to actually be transferred. This PR aims to make sure that all asset mutation events properly fire off the associated events.

@KiChjang KiChjang added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels May 9, 2023
@KiChjang KiChjang requested a review from a team May 9, 2023 08:59
Copy link
Member

@bkchr bkchr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extending the unit tests would be nice

@KiChjang
Copy link
Contributor Author

KiChjang commented May 9, 2023

Extending the unit tests would be nice

Hah, apparently one of the unit tests were failing even before my changes, and we weren't testing the scenario properly. Good thing you've asked!

@KiChjang
Copy link
Contributor Author

KiChjang commented May 9, 2023

bot merge

@paritytech-processbot
Copy link

Error: Response error (status 500 Internal Server Error):

{"error_message":""}

@gilescope
Copy link
Contributor

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 65e7ab6 into master May 9, 2023
@paritytech-processbot paritytech-processbot bot deleted the kckyeung/emit-asset-events branch May 9, 2023 12:28
chevdor pushed a commit that referenced this pull request May 9, 2023
* Emit events related to asset mutations

* Fixes

* Improve unit tests

* cargo fmt
@chevdor chevdor mentioned this pull request May 9, 2023
bkchr pushed a commit that referenced this pull request May 10, 2023
* Emit events related to asset mutations

* Fixes

* Improve unit tests

* cargo fmt

Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
chevdor pushed a commit that referenced this pull request May 10, 2023
* Emit events related to asset mutations

* Fixes

* Improve unit tests

* cargo fmt
nathanwhit pushed a commit to nathanwhit/substrate that referenced this pull request Jul 19, 2023
* Emit events related to asset mutations

* Fixes

* Improve unit tests

* cargo fmt
vanderian pushed a commit to mangata-finance/substrate that referenced this pull request Jul 26, 2023
…#14102)

* Emit events related to asset mutations

* Fixes

* Improve unit tests

* cargo fmt

Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants