-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix(pallet-multi-asset-bounties): use non-destructive read in calculate_payout() #11425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dhirajs0
merged 12 commits into
master
from
dhiraj-fix-multi-asset-bounties-calculate-payout-use-get
Apr 2, 2026
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
309ecc7
fix bounty payout calculation and update assertions in tests
dhirajs0 e83eb2b
Merge branch 'master' into dhiraj-fix-multi-asset-bounties-calculate-…
dhirajs0 f5c54f8
Update from github-actions[bot] running command 'prdoc'
github-actions[bot] 05385d7
Merge branch 'master' into dhiraj-fix-multi-asset-bounties-calculate-…
dhirajs0 637979a
update prdoc
dhirajs0 f6fcf66
Remove unused `Zero` trait import from multi-asset bounties module
dhirajs0 1fc723b
Merge branch 'master' into dhiraj-fix-multi-asset-bounties-calculate-…
dhirajs0 21a9603
Merge branch 'master' into dhiraj-fix-multi-asset-bounties-calculate-…
dhirajs0 a24e37f
Merge branch 'master' into dhiraj-fix-multi-asset-bounties-calculate-…
dhirajs0 e0d4fa9
Merge branch 'master' into dhiraj-fix-multi-asset-bounties-calculate-…
dhirajs0 4c0741b
Merge branch 'master' into dhiraj-fix-multi-asset-bounties-calculate-…
dhirajs0 5163020
Merge branch 'master' into dhiraj-fix-multi-asset-bounties-calculate-…
dhirajs0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| title: 'fix(pallet-multi-asset-bounties): use non-destructive read in calculate_payout()' | ||
| doc: | ||
| - audience: Runtime Dev | ||
| description: | | ||
| Fix `calculate_payout()` using `ChildBountiesValuePerParent::take()` instead of `get()`. | ||
| The destructive `take()` deletes the storage entry on first call, causing | ||
| `BountyPayoutProcessed` to emit an incorrect payout value when `check_status()` calls | ||
| `calculate_payout()` a second time on the success path. Replaced `take()` with `get()` | ||
| and moved storage cleanup to `remove_bounty()`. | ||
| crates: | ||
| - name: pallet-multi-asset-bounties | ||
| bump: patch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.