8000 `anchor-spl` with `metadata` feature fails to compile without `token` and `associated_token` · Issue #3291 · solana-foundation/anchor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
anchor-spl with metadata feature fails to compile without token and associated_token #3291
Open
@lincot

Description

@lincot

Running cargo build --no-default-features --features metadata results in a compilation failure because src/metadata.rs uses spl_token::ID and spl_associated_token_account::ID.

An easy way to fix this would be to make the metadata feature dependent on token and associated_token. However, adding associated_token introduces 71 new dependencies that are not always needed. A more efficient approach would be to define the program pubkeys directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingspl

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0