Skip to content

Commit

Permalink
fix: Separate properties and attributes in NFTInput (#829)
Browse files Browse the repository at this point in the history
  • Loading branch information
yukia3e authored Jan 18, 2025
1 parent 2fd09b6 commit 38ecff2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ export async function erc1155mintTo(fastify: FastifyInstance) {
animation_url: metadata.animation_url ?? undefined,
external_url: metadata.external_url ?? undefined,
background_color: metadata.background_color ?? undefined,
properties: metadata.properties || metadata.attributes,
properties: metadata.properties ?? undefined,
attributes: metadata.attributes ?? undefined,
};
const transaction = mintTo({
contract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ export async function erc721mintTo(fastify: FastifyInstance) {
animation_url: metadata.animation_url ?? undefined,
external_url: metadata.external_url ?? undefined,
background_color: metadata.background_color ?? undefined,
properties: metadata.properties || metadata.attributes,
properties: metadata.properties ?? undefined,
attributes: metadata.attributes ?? undefined,
};
const transaction = mintTo({
contract,
Expand Down

0 comments on commit 38ecff2

Please sign in to comment.