Skip to content

Commit

Permalink
Add note re: 'name' in mint versus 'name' in metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemaccana committed Oct 18, 2024
1 parent 80079da commit 3f44726
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions labs/create-token-mint-with-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ await airdropIfRequired(
1 * LAMPORTS_PER_SOL
);

// TODO: what name and symbol are used in explorer, the one from the mint or the one from the metadata?
// Remove whatever is not used
// ANSWER: name from json metadata is used in explorer
// what happens if we remove it? Unknown token
// TODO: push to github and see what happens
// NOTE: 'name' is oddly defined twice:
// - Name in JSON metadata is shown in explorer (and will be 'Unknown Token' if not provided)
// - Name is still required by web3.js when creating the mint
const name = "Developer Education";
const symbol = "EDU";
const decimals = 9;
Expand Down

0 comments on commit 3f44726

Please sign in to comment.