mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-17 07:45:41 +00:00
Substrate relay guards (#470)
* substrate relay guards * checked time condition * ChainWithBalances * removed obsolete comment * Update relays/substrate-client/src/chain.rs Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com> * trailing space Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>
This commit is contained in:
committed by
Bastian Köcher
parent
cc1da1bb39
commit
b027c81266
@@ -34,6 +34,8 @@ pub enum Error {
|
||||
Request(RequestError),
|
||||
/// The response from the server could not be SCALE decoded.
|
||||
ResponseParseFailed(codec::Error),
|
||||
/// Account does not exist on the chain.
|
||||
AccountDoesNotExist,
|
||||
}
|
||||
|
||||
impl From<WsNewDnsError> for Error {
|
||||
@@ -66,6 +68,7 @@ impl ToString for Error {
|
||||
Self::WsConnectionError(e) => e.to_string(),
|
||||
Self::Request(e) => e.to_string(),
|
||||
Self::ResponseParseFailed(e) => e.what().to_string(),
|
||||
Self::AccountDoesNotExist => "Account does not exist on the chain".into(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user