Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
amiyatulu committed Aug 3, 2024
1 parent dc6b508 commit d87064c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom-pallets/create-department/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ pub mod pallet {

match <DepartmentAccounts<T>>::get(department_id) {
Some(mut old_accounts) => {
// Check if some accounts already exists in old_accounts

// Check if account already exists in old_accounts
if old_accounts.contains(&account) {
Err(Error::<T>::AccountAlreadyExits)?
}
Expand Down

0 comments on commit d87064c

Please sign in to comment.