Skip to content

Commit

Permalink
spec version and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
andreea-popescu-reef committed Sep 9, 2024
1 parent 6b89f64 commit 162453e
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions pallets/subtensor/tests/serving.rs
Original file line number Diff line number Diff line change
@@ -131,7 +131,10 @@ fn test_serving_tls_ok() {

let stored_certificate = NeuronCertificates::<Test>::get(netuid, hotkey_account_id)
.expect("Certificate should exist");
assert_eq!(stored_certificate.public_key.clone().into_inner(), certificate.get(1..).expect("Certificate should exist"));
assert_eq!(
stored_certificate.public_key.clone().into_inner(),
certificate.get(1..).expect("Certificate should exist")
);
let new_certificate = "UPDATED_CERT".as_bytes().to_vec();
assert_ok!(SubtensorModule::serve_axon_tls(
<<Test as Config>::RuntimeOrigin>::signed(hotkey_account_id),
@@ -147,7 +150,10 @@ fn test_serving_tls_ok() {
));
let stored_certificate = NeuronCertificates::<Test>::get(netuid, hotkey_account_id)
.expect("Certificate should exist");
assert_eq!(stored_certificate.public_key.clone().into_inner(), new_certificate.get(1..).expect("Certificate should exist"));
assert_eq!(
stored_certificate.public_key.clone().into_inner(),
new_certificate.get(1..).expect("Certificate should exist")
);
});
}

2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
@@ -142,7 +142,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: 196,
spec_version: 197,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,

0 comments on commit 162453e

Please sign in to comment.