-
Notifications
You must be signed in to change notification settings - Fork 11
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
refactor: iss735 restructure kvstore pallet #753
refactor: iss735 restructure kvstore pallet #753
Conversation
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!
Some detail
I suggest to use vs code with rust-analyzer extension and formatOnSave=true
to get homogeneous formatting
Thanks for the advice, I enabled |
use sp_std::prelude::Vec; | ||
|
||
impl<T: Config> Pallet<T> { | ||
pub fn _set(user: T::AccountId, key: Vec<u8>, value: Vec<u8>) -> DispatchResultWithPostInfo { |
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.
Do we have some tests for it?
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.
set
function is almost wrapper for _set
function. I see we have tests::test_set_and_get
to test set
function which should enough i guess.
Changes:
kvstore
pallet out from crate root to separated module.Related issues: