Skip to content

Commit

Permalink
v16: ExtrinsicMetadata still needs a Vec<u8> for versions
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
  • Loading branch information
lexnv committed Nov 7, 2024
1 parent 743b690 commit 306e400
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frame-metadata/src/v16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ impl IntoPortable for RuntimeApiMethodParamMetadata {
serde(bound(serialize = "T::Type: Serialize, T::String: Serialize"))
)]
pub struct ExtrinsicMetadata<T: Form = MetaForm> {
/// Extrinsic versions.
pub versions: Vec<u8>,
/// The type of the address that signs the extrinsic
pub address_ty: T::Type,
/// The type of the extrinsic's signature.
Expand All @@ -203,6 +205,7 @@ impl IntoPortable for ExtrinsicMetadata {

fn into_portable(self, registry: &mut Registry) -> Self::Output {
ExtrinsicMetadata {
versions: self.versions,
address_ty: registry.register_type(&self.address_ty),
signature_ty: registry.register_type(&self.signature_ty),
transaction_extensions_by_version: self.transaction_extensions_by_version,
Expand Down

0 comments on commit 306e400

Please sign in to comment.