Skip to content

Instantly share code, notes, and snippets.

View brianobot's full-sized avatar
🎱
building for the web

Brian オボット brianobot

🎱
building for the web
View GitHub Profile
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();