Skip to content

Commit

Permalink
merged polkadot-v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gianfra-t committed Jun 26, 2024
2 parents f0e1bdc + f84d351 commit 18fe89a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
1 change: 1 addition & 0 deletions clients/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ standalone-metadata = []
parachain-metadata-pendulum = []
parachain-metadata-amplitude = []
parachain-metadata-foucoco = []
# If `--all-features` is specified in the cargo command, only `standalone-metadata` feature is enabled.
all-features = []

testing-utils = [
Expand Down
3 changes: 1 addition & 2 deletions clients/runtime/src/conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ const RETRY_TIMEOUT: Duration = Duration::from_millis(1000);
const CONNECTION_TIMEOUT: Duration = Duration::from_secs(10);

async fn ws_transport(url: &str) -> Result<(Sender, Receiver), Error> {

let url: Url = url.parse::<Url>().unwrap();
let url: Url = url.parse::<Url>().map_err(Error::UrlParseError)?;

WsTransportClientBuilder::default()
.build(url)
Expand Down
4 changes: 2 additions & 2 deletions clients/runtime/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{array::TryFromSliceError, fmt::Debug, io::Error as IoError, num::TryFr
use codec::Error as CodecError;
pub use jsonrpsee::core::Error as JsonRpseeError;
use jsonrpsee::{
client_transport::ws::{InvalidUri as UrlParseError, WsHandshakeError},
client_transport::ws::WsHandshakeError,
types::ErrorObjectOwned,
};
use serde_json::Error as SerdeJsonError;
Expand Down Expand Up @@ -81,7 +81,7 @@ pub enum Error {
#[error("Timeout: {0}")]
TimeElapsed(#[from] Elapsed),
#[error("UrlParseError: {0}")]
UrlParseError(#[from] UrlParseError),
UrlParseError(#[from] url::ParseError),
#[error("Constant not found: {0}")]
ConstantNotFound(String),
#[error("Currency not found")]
Expand Down
3 changes: 0 additions & 3 deletions clients/runtime/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ pub trait PrettyPrint {
}

mod account_id {
//use sp_core::crypto::Ss58Codec;

use super::*;

impl PrettyPrint for AccountId {
Expand All @@ -188,7 +186,6 @@ mod vault_id {
type RichVaultId = primitives::VaultId<AccountId, primitives::CurrencyId>;

type RichVaultHashable = primitives::VaultId<sp_runtime::AccountId32, primitives::CurrencyId>;
//type RichVaultId = VaultId;

impl crate::VaultId {
pub fn new(
Expand Down
1 change: 0 additions & 1 deletion clients/vault/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use std::{
str::FromStr,
};

//use runtime::AccountId;
use sp_runtime::AccountId32 as AccountId;
use service::Error as ServiceError;
use sysinfo::{Pid, PidExt, ProcessExt, System, SystemExt};
Expand Down

0 comments on commit 18fe89a

Please sign in to comment.