Skip to content

Commit

Permalink
update kudzuName
Browse files Browse the repository at this point in the history
  • Loading branch information
okwme committed Dec 13, 2024
1 parent 2ca53d5 commit faa07f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions scripts/metadataUtils.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ const mouths = {
31: "grimmace",
};

const kudzuName = (id) => {
return "$" + getEmoji(id).eye + "-" + getEmoji(id).mouth;
const kudzuName = (tokenId) => {
const { index, eye, mouth } = getEmoji(tokenId);
return `$${eye}-${mouth}-${index}`;
};

const getEmoji = (tokenId) => {
Expand Down
5 changes: 3 additions & 2 deletions scripts/metadataUtils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ export const mouths = {
31: "grimmace",
};

export const kudzuName = (id) => {
return "$" + getEmoji(id).eye + "-" + getEmoji(id).mouth;
export const kudzuName = (tokenId) => {
const { index, eye, mouth } = getEmoji(tokenId);
return `$${eye}-${mouth}-${index}`;
};

export const getEmoji = (tokenId) => {
Expand Down

0 comments on commit faa07f1

Please sign in to comment.