Skip to content

Possible bug in kinobi-generated rust client code for Create and CreateV1 instructions #140

Open
@billythedummy

Description

@billythedummy

Have not dug too deeply but this:

if let Some(spl_token_program) = self.spl_token_program {
accounts.push(solana_program::instruction::AccountMeta::new_readonly(
spl_token_program,
false,
));
} else {
accounts.push(solana_program::instruction::AccountMeta::new_readonly(
crate::MPL_TOKEN_METADATA_ID,
false,
));
}

doesn't look correct, shouldn't the default spl_token_program account for the instruction be spl_token::ID instead of crate::MPL_TOKEN_METADATA_ID?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions