Fix metadata client (#251)

This commit is contained in:
Jordan Prince 2021-08-29 21:16:18 -05:00 committed by GitHub
parent fdcdd844f9
commit e1ab4494c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -589,12 +589,14 @@ fn create_metadata_account_call(
mutable,
);
let mut instructions = vec![new_metadata_instruction];
let mut instructions = vec![];
if create_new_mint {
instructions.append(&mut new_mint_instructions)
}
instructions.push(new_metadata_instruction);
let mut transaction = Transaction::new_with_payer(&instructions, Some(&payer.pubkey()));
let recent_blockhash = client.get_recent_blockhash().unwrap().0;
let mut signers = vec![&payer];