Skip to content

Commit

Permalink
correction project tips
Browse files Browse the repository at this point in the history
  • Loading branch information
amiyatulu committed Nov 14, 2023
1 parent 2117fd0 commit e66f6ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/project-tips/src/extras.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl<T: Config> Pallet<T> {
let block_number_option = <ValidationProjectBlock<T>>::get(project_id);
let block_number = match block_number_option {
Some(block_number) => block_number,
None => Err(Error::<T>::ProjectIdStakingPeriodAlreadySet)?,
None => Err(Error::<T>::BlockNumberProjectIdNotExists)?,
};
Ok(block_number)
}
Expand Down
3 changes: 3 additions & 0 deletions pallets/project-tips/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
/// Edit this file to define custom logic or remove it if it is not needed.
/// Learn more about FRAME and the core library of Substrate FRAME pallets:
/// <https://docs.substrate.io/reference/frame-pallets/>
// One can enhance validation measures by increasing staking power for local residents or individuals with positive externalities—those who contribute to the network for a good cause.
pub use pallet::*;

#[cfg(test)]
Expand Down Expand Up @@ -154,6 +156,7 @@ pub mod pallet {
ProjectDontExists,
ProjectCreatorDontMatch,
ProjectIdStakingPeriodAlreadySet,
BlockNumberProjectIdNotExists,
}

// Check deparment exists, it will done using loose coupling
Expand Down

0 comments on commit e66f6ef

Please sign in to comment.