Skip to content
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

Pallet updates according to latest discussions #31

Merged
merged 1 commit into from
Mar 25, 2022

Conversation

vayesy
Copy link
Contributor

@vayesy vayesy commented Mar 25, 2022

  • Additional validations when creating withdrawal proposal.
  • Added missing docstrings.
  • Updated tests.

@vayesy vayesy requested a review from vovacha March 25, 2022 14:16
@vayesy vayesy self-assigned this Mar 25, 2022
Copy link
Contributor

@vovacha vovacha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, the only thing - I'd like to close the topic about naming convention.

@@ -641,7 +657,7 @@ impl<T: Config> Pallet<T> {
}
}

fn remove(org_id: T::Hash, account: T::AccountId) -> DispatchResult {
fn remove_org_member(org_id: T::Hash, account: T::AccountId) -> DispatchResult {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's finish our long discussion about function names right here.
I'd stick to "do_{extrinsic_name}" format.
Example FRAME Uniques: https://github.com/paritytech/substrate/blob/master/frame/uniques/src/functions.rs#L25

Or, please, suggest other options.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use do_... naming.

@vayesy vayesy force-pushed the migration/pallets-refactoring branch from 32647d4 to dba2d0d Compare March 25, 2022 16:51
@vovacha vovacha merged commit d126379 into main Mar 25, 2022
@vovacha vovacha deleted the migration/pallets-refactoring branch March 25, 2022 16:54
@2075
Copy link
Member

2075 commented Mar 25, 2022

👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants