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
use mpl_token_metadata::{instruction::create_metadata_accounts_v3, state::Creator as creator_struct}; | |
pub fn create_metadata(&mut self, name: String, symbol: String, uri: String) -> Result<()> { | |
let seeds = &[ | |
&b"creator"[..], | |
&self.creator.tweet_id.to_le_bytes()[..], | |
&[self.creator.state_bump], | |
]; | |
let program_id = self.metadata_program.key(); |