Created
September 16, 2023 21:33
-
-
Save danmt/ab980371c156e62b28a0d04320a414ce to your computer and use it in GitHub Desktop.
Initialize a Metadata struct with the Token Metadata program id.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[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