Skip to content

Commit

Permalink
fix: fix bug counted clear
Browse files Browse the repository at this point in the history
  • Loading branch information
ytqaljn committed Jan 4, 2024
1 parent 3ac4aee commit bf9f6dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions pallets/audit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,9 @@ pub mod pallet {
};

challenge_info.prove_info.idle_prove = Some(idle_prove_info);
if challenge_info.prove_info.service_prove.is_some() {
<CountedClear<T>>::insert(&sender, u8::MIN);
}
} else {
return Err(Error::<T>::Submitted)?
}
Expand Down Expand Up @@ -454,6 +457,9 @@ pub mod pallet {
};

challenge_info.prove_info.service_prove = Some(service_prove_info);
if challenge_info.prove_info.idle_prove.is_some() {
<CountedClear<T>>::insert(&sender, u8::MIN);
}
} else {
return Err(Error::<T>::Submitted)?
}
Expand Down
2 changes: 1 addition & 1 deletion standalone/chain/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// `spec_version`, and `authoring_version` are the same between Wasm and native.
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
// the compatible custom types.
spec_version: 101,
spec_version: 102,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down

0 comments on commit bf9f6dd

Please sign in to comment.