diff --git a/polkadot/utils/staking-miner/src/monitor.rs b/polkadot/utils/staking-miner/src/monitor.rs index 6bd90666f7..e603706e2f 100644 --- a/polkadot/utils/staking-miner/src/monitor.rs +++ b/polkadot/utils/staking-miner/src/monitor.rs @@ -25,13 +25,14 @@ use jsonrpsee_ws_client::{ WsClient, }; use sc_transaction_pool_api::TransactionStatus; +use sp_core::storage::StorageKey; /// Ensure that now is the signed phase. async fn ensure_signed_phase( client: &WsClient, at: B::Hash, ) -> Result<(), Error> { - let key = sp_core::storage::StorageKey(EPM::CurrentPhase::::hashed_key().to_vec()); + let key = StorageKey(EPM::CurrentPhase::::hashed_key().to_vec()); let phase = get_storage::>(client, params! {key, at}) .await .map_err::, _>(Into::into)? @@ -156,7 +157,7 @@ macro_rules! monitor_cmd_for { ($runtime:tt) => { paste::paste! { TransactionStatus::Ready | TransactionStatus::Broadcast(_) | TransactionStatus::Future => continue, TransactionStatus::InBlock(hash) => { log::info!(target: LOG_TARGET, "included at {:?}", hash); - let key = frame_support::storage::storage_prefix(b"System", b"Events"); + let key = StorageKey(frame_support::storage::storage_prefix(b"System",b"Events").to_vec()); let events = get_storage::::Hash>>, >(client, params!{ key, hash }).await?.unwrap_or_default(); log::info!(target: LOG_TARGET, "events at inclusion {:?}", events);