pub fn handle_unsupported_types(method: &str) -> Error {
	match method {
		"file" => {
			return ErrorKind::WalletComms(
				"File based transactions must be performed asynchronously.".to_string(),
			)
			.into();
		}
		"self" => {
			return ErrorKind::WalletComms("No sender implementation for \"self\".".to_string())
				.into();
		}
		_ => {
			return ErrorKind::WalletComms(format!(
				"Wallet comm method \"{}\" does not exist.",
				method
			))
			.into();
		}
	}
}
/// create sender not-supported types
create sender not-supported types
create sender not - supported types
pub fn handle_unsupported_types(method: &str) -> Error {
	match method {
		"file" => {
			return ErrorKind::WalletComms(
				"File based transactions must be performed asynchronously.".to_string(),
			)
			.into();
		}
		"self" => {
			return ErrorKind::WalletComms("No sender implementation for \"self\".".to_string())
				.into();
		}
		_ => {
			return ErrorKind::WalletComms(format!(
				"Wallet comm method \"{}\" does not exist.",
				method
			))
			.into();
		}
	}
}
pub fn handle_unsupported_types ( method : & str ) -> Error { match method { " " => { return ErrorKind :: WalletComms ( " " . to_string ( ) , ) . into ( ) ; } " " => { return ErrorKind :: WalletComms ( " \" \" " . to_string ( ) ) . into ( ) ; } _ => { return ErrorKind :: WalletComms ( format ! ( " \" \" " method ) ) . into ( ) ; } } }
create sender not-supported types
create sender not - supported types
method
&str
method
&str