Skip to content

Hygiene Problem in pvq-program-metadata-gen #70

Description

@mise42

Since the metadata generation code is derived from the original PVQ program code, the package imports below may conflict with the original source code.

fn import_packages() -> proc_macro2::TokenStream {
    quote! {
        extern crate alloc;
        use std::path::Path;
        use serde::Serialize;
        use parity_scale_codec::Encode;
        use scale_info::{
            form::{Form, MetaForm, PortableForm},
            prelude::vec::Vec,
            IntoPortable, PortableRegistry, Registry,
        };
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions