diff --git a/src/commands/smith.rs b/src/commands/smith.rs index 807381f2387033bf9fa659abee40ac129530fb51..efd32d4f171560a9cdf32b34e1338d12d3fea014 100644 --- a/src/commands/smith.rs +++ b/src/commands/smith.rs @@ -14,26 +14,22 @@ fn session_keys_decode(session_keys: SessionKeys) -> RuntimeSessionKeys { runtime::runtime_types::sp_core::ed25519::Public( session_keys[0..32].try_into().unwrap(), ), - ) - .into(), + ), babe: runtime::runtime_types::sp_consensus_babe::app::Public( runtime::runtime_types::sp_core::sr25519::Public( session_keys[32..64].try_into().unwrap(), ), - ) - .into(), + ), im_online: runtime::runtime_types::pallet_im_online::sr25519::app_sr25519::Public( runtime::runtime_types::sp_core::sr25519::Public( session_keys[64..96].try_into().unwrap(), ), - ) - .into(), + ), authority_discovery: runtime::runtime_types::sp_authority_discovery::app::Public( runtime::runtime_types::sp_core::sr25519::Public( session_keys[96..128].try_into().unwrap(), ), - ) - .into(), + ), } } diff --git a/src/commands/sudo.rs b/src/commands/sudo.rs index b54e5eb5dd6f2282e351964d4329a56e686cd904..b9fce469a4849e275742ba21d4510986f08b6028 100644 --- a/src/commands/sudo.rs +++ b/src/commands/sudo.rs @@ -51,6 +51,6 @@ pub async fn set_distance_ok(data: &Data, identity: IdtyId) -> Result<(), subxt: submit_call_and_look_event::< runtime::sudo::events::Sudid, Payload<runtime::sudo::calls::types::Sudo>, - >(data, &runtime::tx().sudo().sudo(inner.into())) + >(data, &runtime::tx().sudo().sudo(inner)) .await }