Skip to content

Commit

Permalink
fmt, clippy, bump spec
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnReedV committed Nov 14, 2024
1 parent 93e38e9 commit b684810
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
9 changes: 4 additions & 5 deletions node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,11 @@ where

let executor = sc_service::new_wasm_executor::<HostFunctions>(&config.executor);
let (client, backend, keystore_container, task_manager) =

sc_service::new_full_parts::<Block, RuntimeApi, RuntimeExecutor>(
config,
telemetry.as_ref().map(|(_, telemetry)| telemetry.handle()),
executor,
)?;
config,
telemetry.as_ref().map(|(_, telemetry)| telemetry.handle()),
executor,
)?;

let client = Arc::new(client);

Expand Down
2 changes: 2 additions & 0 deletions pallets/drand/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

// We make sure this pallet uses `no_std` for compiling to Wasm.
#![cfg_attr(not(feature = "std"), no_std)]
// Many errors are transformed throughout the pallet.
#![allow(clippy::manual_inspect)]

// Re-export pallet items so that they can be accessed from the crate namespace.
pub use pallet::*;
Expand Down
4 changes: 2 additions & 2 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl frame_system::offchain::CreateSignedTransaction<pallet_drand::Call<Runtime>
let raw_payload = SignedPayload::new(call.clone(), extra.clone()).ok()?;
let signature = raw_payload.using_encoded(|payload| S::sign(payload, public))?;

let signature_payload = (address, signature.into(), extra);
let signature_payload = (address, signature, extra);

Some((call, signature_payload))
}
Expand Down Expand Up @@ -220,7 +220,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: 208,
spec_version: 209,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down

0 comments on commit b684810

Please sign in to comment.