Updated to later version of substrate so that it compiles.

(Referencing substrate this way you only have to search and replace one string to upgrade)
This commit is contained in:
Giles Cope
2021-09-17 10:52:23 +01:00
parent 414f81774d
commit 364ed8bed1
6 changed files with 90 additions and 134 deletions
+7 -9
View File
@@ -16,16 +16,10 @@
use jsonrpsee_types::Error as RequestError;
use sp_core::crypto::SecretStringError;
use sp_runtime::{
transaction_validity::TransactionValidityError,
DispatchError,
};
use sp_runtime::{transaction_validity::TransactionValidityError, DispatchError};
use thiserror::Error;
use crate::metadata::{
Metadata,
MetadataError,
};
use crate::metadata::{Metadata, MetadataError};
/// Error enum.
#[derive(Debug, Error)]
@@ -139,7 +133,11 @@ impl RuntimeError {
DispatchError::CannotLookup => Ok(Self::CannotLookup),
DispatchError::ConsumerRemaining => Ok(Self::ConsumerRemaining),
DispatchError::NoProviders => Ok(Self::NoProviders),
DispatchError::Other(msg) => Ok(Self::Other(msg.into())),
DispatchError::Arithmetic(_math_error) => {
Ok(Self::Other("math_error".into()))
}
DispatchError::Token(_token_error) => Ok(Self::Other("token error".into())),
DispatchError::Other(msg) => Ok(Self::Other(msg.to_string())),
}
}
}