mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 03:58:04 +00:00
Misc changes (#2)
* Remove dependency on tokio, submit returns a future * Enable logging in tests * Add fetch, fetch_or, fetch_or_default
This commit is contained in:
committed by
Andrew Jones
parent
5a046d043e
commit
6522bb08d0
+7
-9
@@ -20,16 +20,14 @@ use substrate_primitives::crypto::SecretStringError;
|
||||
|
||||
#[derive(Debug, derive_more::From)]
|
||||
pub enum Error {
|
||||
Io(IoError),
|
||||
Rpc(RpcError),
|
||||
SecretString(SecretStringError),
|
||||
Other(String),
|
||||
Io(IoError),
|
||||
Rpc(RpcError),
|
||||
SecretString(SecretStringError),
|
||||
Other(String),
|
||||
}
|
||||
|
||||
impl From<&str> for Error {
|
||||
fn from(error: &str) -> Self {
|
||||
Error::Other(error.into())
|
||||
}
|
||||
fn from(error: &str) -> Self {
|
||||
Error::Other(error.into())
|
||||
}
|
||||
}
|
||||
|
||||
pub type Result<T> = std::result::Result<T, Error>;
|
||||
Reference in New Issue
Block a user