diff --git a/pallets/phala/src/compute/vault.rs b/pallets/phala/src/compute/vault.rs index 6cd2f3c88e..9cd58b9da8 100644 --- a/pallets/phala/src/compute/vault.rs +++ b/pallets/phala/src/compute/vault.rs @@ -543,7 +543,7 @@ pub mod pallet { } #[pallet::call_index(7)] - #[pallet::weight(0)] + #[pallet::weight({0})] #[frame_support::transactional] pub fn refresh_vault_lock_and_check(origin: OriginFor, pid: u64) -> DispatchResult { let who = ensure_signed(origin.clone())?; diff --git a/standalone/node/src/service.rs b/standalone/node/src/service.rs index 49d9819921..e93025fee4 100644 --- a/standalone/node/src/service.rs +++ b/standalone/node/src/service.rs @@ -162,7 +162,7 @@ pub fn new_partial( }) .transpose()?; - let executor = sc_service::new_native_or_wasm_executor(&config); + let executor = sc_service::new_native_or_wasm_executor(config); let (client, backend, keystore_container, task_manager) = sc_service::new_full_parts::( diff --git a/standalone/pruntime/src/main.rs b/standalone/pruntime/src/main.rs index c46e8d92df..9eb455ee9e 100644 --- a/standalone/pruntime/src/main.rs +++ b/standalone/pruntime/src/main.rs @@ -6,7 +6,7 @@ mod runtime; use std::{env, thread}; use clap::Parser; -use tracing::{error, info, info_span, Instrument}; +use tracing::{info, info_span, Instrument}; use phactory_api::ecall_args::InitArgs; use phala_git_revision::git_revision_with_ts; diff --git a/standalone/pruntime/src/pal_gramine.rs b/standalone/pruntime/src/pal_gramine.rs index 92e774be38..18f60d756d 100644 --- a/standalone/pruntime/src/pal_gramine.rs +++ b/standalone/pruntime/src/pal_gramine.rs @@ -1,7 +1,6 @@ use anyhow::anyhow; use parity_scale_codec::Encode; use std::alloc::System; -use tracing::info; use phactory_pal::{AppInfo, AppVersion, Machine, MemoryStats, MemoryUsage, Sealing, RA}; use phala_allocator::StatSizeAllocator; diff --git a/standalone/rpc/src/lib.rs b/standalone/rpc/src/lib.rs index 8a5b5bb2c6..b15e07d942 100644 --- a/standalone/rpc/src/lib.rs +++ b/standalone/rpc/src/lib.rs @@ -152,7 +152,7 @@ pub fn create_full( )?; io.merge( - SyncState::new(chain_spec, client.clone(), shared_authority_set, babe_worker_handle)? + SyncState::new(chain_spec, client, shared_authority_set, babe_worker_handle)? .into_rpc(), )?;