Skip to content

Instantly share code, notes, and snippets.

@danmt
Created September 16, 2023 21:33
Show Gist options
  • Save danmt/ab980371c156e62b28a0d04320a414ce to your computer and use it in GitHub Desktop.
Save danmt/ab980371c156e62b28a0d04320a414ce to your computer and use it in GitHub Desktop.
Initialize a Metadata struct with the Token Metadata program id.
#[derive(Clone)]
pub struct Metadata;
impl anchor_lang::Id for Metadata {
fn id() -> Pubkey {
Pubkey::from_str("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s").unwrap()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment