Skip to content

Commit

Permalink
fix: clippy issue is fixed and runtime version is upgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
yahortsaryk committed Nov 13, 2023
1 parent 5495324 commit 6a53b71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pallets/ddc-staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ pub mod pallet {
ensure!(!Storages::<T>::contains_key(stash), Error::<T>::AlreadyInRole);

// Only CDN node can perform serving (i.e. streaming content)
let node_pub_key = <Providers<T>>::get(&stash).ok_or(Error::<T>::BadState)?;
let node_pub_key = <Providers<T>>::get(stash).ok_or(Error::<T>::BadState)?;
ensure!(
matches!(node_pub_key, NodePubKey::CDNPubKey(_)),
Error::<T>::ServingProhibited
Expand Down Expand Up @@ -595,7 +595,7 @@ pub mod pallet {
ensure!(!CDNs::<T>::contains_key(stash), Error::<T>::AlreadyInRole);

// Only Storage node can perform storing (i.e. saving content)
let node_pub_key = <Providers<T>>::get(&stash).ok_or(Error::<T>::BadState)?;
let node_pub_key = <Providers<T>>::get(stash).ok_or(Error::<T>::BadState)?;
ensure!(
matches!(node_pub_key, NodePubKey::StoragePubKey(_)),
Error::<T>::StoringProhibited
Expand Down
2 changes: 1 addition & 1 deletion runtime/cere-dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 48013,
spec_version: 48014,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 5,
Expand Down

0 comments on commit 6a53b71

Please sign in to comment.