diff --git a/src/server/routes/contract/extensions/erc1155/write/mint-to.ts b/src/server/routes/contract/extensions/erc1155/write/mint-to.ts index 63ca44a7..6508c87f 100644 --- a/src/server/routes/contract/extensions/erc1155/write/mint-to.ts +++ b/src/server/routes/contract/extensions/erc1155/write/mint-to.ts @@ -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, diff --git a/src/server/routes/contract/extensions/erc721/write/mint-to.ts b/src/server/routes/contract/extensions/erc721/write/mint-to.ts index 7e7d0c14..0385d0bc 100644 --- a/src/server/routes/contract/extensions/erc721/write/mint-to.ts +++ b/src/server/routes/contract/extensions/erc721/write/mint-to.ts @@ -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,