Update substrate, bump metadata version to v11 (#67)

This commit is contained in:
Yuanchao Sun
2020-01-31 19:40:45 +08:00
committed by GitHub
parent 3618b03dee
commit 1a5e74ac76
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -63,6 +63,7 @@ impl<T> SignedExtension for CheckVersion<T>
where
T: System + Send + Sync,
{
const IDENTIFIER: &'static str = "CheckVersion";
type AccountId = u64;
type Call = ();
type AdditionalSigned = u32;
@@ -93,6 +94,7 @@ impl<T> SignedExtension for CheckGenesis<T>
where
T: System + Send + Sync,
{
const IDENTIFIER: &'static str = "CheckGenesis";
type AccountId = u64;
type Call = ();
type AdditionalSigned = T::Hash;
@@ -125,6 +127,7 @@ impl<T> SignedExtension for CheckEra<T>
where
T: System + Send + Sync,
{
const IDENTIFIER: &'static str = "CheckEra";
type AccountId = u64;
type Call = ();
type AdditionalSigned = T::Hash;
@@ -145,6 +148,7 @@ impl<T> SignedExtension for CheckNonce<T>
where
T: System + Send + Sync,
{
const IDENTIFIER: &'static str = "CheckNonce";
type AccountId = u64;
type Call = ();
type AdditionalSigned = ();
@@ -165,6 +169,7 @@ impl<T> SignedExtension for CheckWeight<T>
where
T: System + Send + Sync,
{
const IDENTIFIER: &'static str = "CheckWeight";
type AccountId = u64;
type Call = ();
type AdditionalSigned = ();
@@ -186,6 +191,7 @@ impl<T> SignedExtension for ChargeTransactionPayment<T>
where
T: Balances + Send + Sync,
{
const IDENTIFIER: &'static str = "ChargeTransactionPayment";
type AccountId = u64;
type Call = ();
type AdditionalSigned = ();
@@ -206,6 +212,7 @@ impl<T> SignedExtension for CheckBlockGasLimit<T>
where
T: System + Send + Sync,
{
const IDENTIFIER: &'static str = "CheckBlockGasLimit";
type AccountId = u64;
type Call = ();
type AdditionalSigned = ();
@@ -266,6 +273,7 @@ impl<T: System + Balances + Send + Sync> SignedExtra<T> for DefaultExtra<T> {
}
impl<T: System + Balances + Send + Sync> SignedExtension for DefaultExtra<T> {
const IDENTIFIER: &'static str = "DefaultExtra";
type AccountId = T::AccountId;
type Call = ();
type AdditionalSigned =
+1 -1
View File
@@ -355,7 +355,7 @@ impl TryFrom<RuntimeMetadataPrefixed> for Metadata {
return Err(ConversionError::InvalidPrefix.into())
}
let meta = match metadata.1 {
RuntimeMetadata::V10(meta) => meta,
RuntimeMetadata::V11(meta) => meta,
_ => return Err(ConversionError::InvalidVersion.into()),
};
let mut modules = HashMap::new();