-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Removing without_storage_info from scored-pool pallet. #11996
Removing without_storage_info from scored-pool pallet. #11996
Conversation
|
bot rebase CI fails, lets see if a rebase fixes it. |
…ve-without-storage
|
Rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some comments 👍
PS: I dont see where this is deployed, so adding the notlive label.
Me neither actually. I might include the pallet in the |
|
@ggwpez comments addressed. Please feel free to let me know for any other needed action. |
ggwpez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just some nits 👍
frame/scored-pool/src/mock.rs
Outdated
|
|
||
| pub static MEMBERS: RefCell<BoundedVec<u64,ConstU32<10_u32>>> = RefCell::new(bounded_vec![0,10]); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| pub static MEMBERS: RefCell<BoundedVec<u64,ConstU32<10_u32>>> = RefCell::new(bounded_vec![0,10]); | |
| pub static MEMBERS: RefCell<BoundedVec<u64,ConstU32<10_u32>>> = RefCell::new(bounded_vec![0,10]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or better, ues:
parameter_types! {
pub static Members: BoundedVec<u64,ConstU32<10_u32>> = bounded_vec![0,10]
}
and then you get Members::get() and Members::set() with the same functionality.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great, i have removed the local thread and added the parameter_types!
|
@ggwpez i have addressed the rest of the feedback but i see some of the build jobs still failing. Maybe restarting the pipeline? |
frame/scored-pool/src/lib.rs
Outdated
| Self::update_member_count(count)?; | ||
| Ok(()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Self::update_member_count(count)?; | |
| Ok(()) | |
| Self::update_member_count(count) |
There is one unused std::cell::RefCell import in the mock file which makes the CI unhappy.
|
@kianenigma can you confirm that this is not live and we do not need audit? |
kianenigma
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed not live in our deployments.
|
@ggwpez i think all the feedback was addressed already. |
|
Yea looks like it is good to merge. Just need to resolve one conflict 👍 |
96f5338 to
62c21e8
Compare
@ggwpez solved and all check/build process is in green. |
|
bot merge |
Removing macro
#[pallet::without_storage_info]for scored-pool pallet.