mirror of
https://github.com/pezkuwichain/pezframe-metadata.git
synced 2026-06-13 09:21:11 +00:00
Add additional_signed field for SignedExtension payload data (#19)
* Add `SignedExtensionMetadata::additional_signed` field for signed payload data * Fmt
This commit is contained in:
@@ -103,8 +103,10 @@ impl IntoPortable for ExtrinsicMetadata {
|
|||||||
pub struct SignedExtensionMetadata<T: Form = MetaForm> {
|
pub struct SignedExtensionMetadata<T: Form = MetaForm> {
|
||||||
/// The unique signed extension identifier, which may be different from the type name.
|
/// The unique signed extension identifier, which may be different from the type name.
|
||||||
pub identifier: T::String,
|
pub identifier: T::String,
|
||||||
/// The signed extensions in the order they appear in the extrinsic.
|
/// The type of the signed extension, with the data to be included in the extrinsic.
|
||||||
pub ty: T::Type,
|
pub ty: T::Type,
|
||||||
|
/// The type of the additional signed data, with the data to be included in the signed payload
|
||||||
|
pub additional_signed: T::Type,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl IntoPortable for SignedExtensionMetadata {
|
impl IntoPortable for SignedExtensionMetadata {
|
||||||
@@ -114,6 +116,7 @@ impl IntoPortable for SignedExtensionMetadata {
|
|||||||
SignedExtensionMetadata {
|
SignedExtensionMetadata {
|
||||||
identifier: self.identifier.into_portable(registry),
|
identifier: self.identifier.into_portable(registry),
|
||||||
ty: registry.register_type(&self.ty),
|
ty: registry.register_type(&self.ty),
|
||||||
|
additional_signed: registry.register_type(&self.additional_signed),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -261,11 +264,7 @@ impl IntoPortable for StorageEntryType {
|
|||||||
fn into_portable(self, registry: &mut Registry) -> Self::Output {
|
fn into_portable(self, registry: &mut Registry) -> Self::Output {
|
||||||
match self {
|
match self {
|
||||||
Self::Plain(plain) => StorageEntryType::Plain(registry.register_type(&plain)),
|
Self::Plain(plain) => StorageEntryType::Plain(registry.register_type(&plain)),
|
||||||
Self::Map {
|
Self::Map { hasher, key, value } => StorageEntryType::Map {
|
||||||
hasher,
|
|
||||||
key,
|
|
||||||
value,
|
|
||||||
} => StorageEntryType::Map {
|
|
||||||
hasher,
|
hasher,
|
||||||
key: registry.register_type(&key),
|
key: registry.register_type(&key),
|
||||||
value: registry.register_type(&value),
|
value: registry.register_type(&value),
|
||||||
|
|||||||
Reference in New Issue
Block a user