-
Notifications
You must be signed in to change notification settings - Fork 688
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ticket non-optional and add ensure_successful method to Consider…
…ation trait (#5359) Make ticket non-optional and add ensure_successful method to Consideration trait. Reverts the optional return ticket type for the new function introduced in [polkadot-sdk/4596](#4596) and adds a helper `ensure_successful` function for the runtime benchmarks. Since the existing FRAME pallet represents zero cost with a zero balance rather than `None` in an option, maintaining the ticket type as a non-optional balance is beneficial for backward compatibility and helps avoid unnecessary migrations.
- Loading branch information
Showing
6 changed files
with
115 additions
and
104 deletions.
There are no files selected for viewing
This file contains 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,21 @@ | ||
title: Make ticket non-optional and add ensure_successful method to Consideration trait | ||
|
||
doc: | ||
- audience: Runtime Dev | ||
description: | | ||
Make ticket non-optional and add ensure_successful method to Consideration trait. | ||
|
||
Reverts the optional return ticket type for the new function introduced in | ||
[polkadot-sdk/4596](https://github.com/paritytech/polkadot-sdk/pull/4596) and adds a helper | ||
`ensure_successful` function for the runtime benchmarks. | ||
Since the existing FRAME pallet represents zero cost with a zero balance type rather than | ||
`None` in an option, maintaining the ticket type as a non-optional balance is beneficial | ||
for backward compatibility and helps avoid unnecessary migrations. | ||
|
||
crates: | ||
- name: frame-support | ||
bump: major | ||
- name: pallet-preimage | ||
bump: major | ||
- name: pallet-balances | ||
bump: patch |
This file contains 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 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 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 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.