mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 15:01:06 +00:00
Fix and cleanups (#314)
* Cleanups (remove genesis.wasm & nicer errors) - Pretty errors for version mismatch - Remove the need for genesis wasm * Remove unneeded wasm files * Improve code of conduct * Leaner code * Test fixes * fix tests * Fix consensus checking
This commit is contained in:
committed by
Arkadiy Paronyan
parent
5b3050293a
commit
ae5298f8b7
@@ -39,6 +39,9 @@ use codec::Slicable;
|
||||
#[cfg(feature = "std")]
|
||||
use std::borrow::Cow;
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
use std::fmt;
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
pub type VersionString = ::std::borrow::Cow<'static, str>;
|
||||
#[cfg(not(feature = "std"))]
|
||||
@@ -108,6 +111,13 @@ impl Default for RuntimeVersion {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
impl fmt::Display for RuntimeVersion {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "{}-{}:{}({}-{})", self.spec_name, self.spec_version, self.authoring_version, self.impl_name, self.impl_version)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
impl RuntimeVersion {
|
||||
/// Check if this version matches other version for calling into runtime.
|
||||
|
||||
Reference in New Issue
Block a user