This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add Score to Bags List #11357
Merged
Merged
Add Score to Bags List #11357
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
1b8e11b
Add Score to Bags List
shawntabrizi 8a19341
fix ordering
shawntabrizi 8ac50da
make compile
shawntabrizi 8825e6b
in progress migration
shawntabrizi 5fef49c
make migration compile
shawntabrizi 3d16d73
remove old check
shawntabrizi dfb0ca8
remove runtime specific migration
shawntabrizi 9492773
Merge branch 'master' into shawntabrizi-add-score
shawntabrizi ef2408f
fix warning
shawntabrizi 238f7b1
Apply suggestions from code review
shawntabrizi 8943fee
improve migration
shawntabrizi 7e86363
fix
shawntabrizi 0f516d8
Merge branch 'master' into shawntabrizi-add-score
shawntabrizi 213261c
Merge branch 'master' into shawntabrizi-add-score
shawntabrizi 338cb45
fix merge
shawntabrizi 26651c6
fmt
shawntabrizi 5a49d2b
Update migrations.rs
shawntabrizi 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
make migration compile
- Loading branch information
commit 5fef49cce2dc4b3d4e2a45a1ab28dc075d1d9eda
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 |
|---|---|---|
|
|
@@ -811,13 +811,13 @@ impl<T: Config<I>, I: 'static> Bag<T, I> { | |
| #[scale_info(skip_type_params(T, I))] | ||
| #[cfg_attr(feature = "std", derive(frame_support::DebugNoBound, Clone, PartialEq))] | ||
| pub struct Node<T: Config<I>, I: 'static = ()> { | ||
| id: T::AccountId, | ||
| prev: Option<T::AccountId>, | ||
| next: Option<T::AccountId>, | ||
| bag_upper: T::Score, | ||
| score: T::Score, | ||
| pub(crate) id: T::AccountId, | ||
| pub(crate) prev: Option<T::AccountId>, | ||
| pub(crate) next: Option<T::AccountId>, | ||
| pub(crate) bag_upper: T::Score, | ||
| pub(crate) score: T::Score, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this need a migration since you added a field to storage? |
||
| #[codec(skip)] | ||
| _phantom: PhantomData<I>, | ||
| pub(crate) _phantom: PhantomData<I>, | ||
| } | ||
|
|
||
| impl<T: Config<I>, I: 'static> Node<T, I> { | ||
|
|
||
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
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.