Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
style: running prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammedAlabd committed Mar 12, 2024
1 parent df2df8e commit e6998e7
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions token/js/examples/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import {
TOKEN_2022_PROGRAM_ID,
TYPE_SIZE,
} from '@solana/spl-token';
import type { TokenMetadata } from '@solana/spl-token-metadata';
import {
createInitializeInstruction,
pack,
TokenMetadata,
createUpdateFieldInstruction,
createRemoveKeyInstruction,
} from '@solana/spl-token-metadata';
Expand Down Expand Up @@ -59,7 +59,12 @@ import {
lamports: mintLamports,
programId: TOKEN_2022_PROGRAM_ID,
}),
createInitializeMetadataPointerInstruction(mint.publicKey, payer.publicKey, mint.publicKey, TOKEN_2022_PROGRAM_ID),
createInitializeMetadataPointerInstruction(
mint.publicKey,
payer.publicKey,
mint.publicKey,
TOKEN_2022_PROGRAM_ID
),
createInitializeMintInstruction(mint.publicKey, decimals, payer.publicKey, null, TOKEN_2022_PROGRAM_ID),
createInitializeInstruction({
programId: TOKEN_2022_PROGRAM_ID,
Expand Down Expand Up @@ -97,8 +102,8 @@ import {
updateAuthority: payer.publicKey,
key: 'new-field',
idempotent: true, // If false the operation will fail if the field does not exist in the metadata
}),
})
);
const sig = await sendAndConfirmTransaction(connection, mintTransaction, [payer, mint]);
console.log('Signature:', sig);
})();
})();

0 comments on commit e6998e7

Please sign in to comment.