diff --git a/pallets/project-tips/src/extras.rs b/pallets/project-tips/src/extras.rs index 2fc5193..1c85fbe 100644 --- a/pallets/project-tips/src/extras.rs +++ b/pallets/project-tips/src/extras.rs @@ -54,7 +54,7 @@ impl Pallet { let block_number_option = >::get(project_id); let block_number = match block_number_option { Some(block_number) => block_number, - None => Err(Error::::ProjectIdStakingPeriodAlreadySet)?, + None => Err(Error::::BlockNumberProjectIdNotExists)?, }; Ok(block_number) } diff --git a/pallets/project-tips/src/lib.rs b/pallets/project-tips/src/lib.rs index e377e5b..235a5e1 100644 --- a/pallets/project-tips/src/lib.rs +++ b/pallets/project-tips/src/lib.rs @@ -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: /// + +// 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)] @@ -154,6 +156,7 @@ pub mod pallet { ProjectDontExists, ProjectCreatorDontMatch, ProjectIdStakingPeriodAlreadySet, + BlockNumberProjectIdNotExists, } // Check deparment exists, it will done using loose coupling