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

Improve pallet asset doc #10431

Merged
merged 1 commit into from
Dec 9, 2021
Merged

Improve pallet asset doc #10431

merged 1 commit into from
Dec 9, 2021

Conversation

gui1117
Copy link
Contributor

@gui1117 gui1117 commented Dec 7, 2021

Fix #10391

For the doc of frozen_balance I actually can't really understand the doc, I tried to do what I think is the current implementation and in regards to what is discussed in the issue #10391

For the doc of died I think we can improve the implementation in order not to have this error prone API. But I just documented the current behavior.

@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Dec 7, 2021
@gui1117 gui1117 added 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 Dec 7, 2021
///
/// # Warning
///
/// This function must never access storage of pallet asset. This function is called while some
Copy link
Contributor

@xlc xlc Dec 7, 2021

Choose a reason for hiding this comment

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

yeah it will be helpful if the code can be refactored to avoid issue like #7605

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes issue is opened here #10432 now

@emostov
Copy link
Contributor

emostov commented Dec 9, 2021

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 7926c6d into master Dec 9, 2021
@paritytech-processbot paritytech-processbot bot deleted the gui-asset-doc branch December 9, 2021 06:31
seunlanlege pushed a commit to seunlanlege/substrate that referenced this pull request Dec 17, 2021
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
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.

Question: Is pallet asset trait FrozenBalance correctly implemented ?
4 participants