Skip to content

Commit a4e681a

Browse files
committed
fix: Separate properties and attributes in NFTInput
1 parent db40029 commit a4e681a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/server/routes/contract/extensions/erc1155/write/mint-to.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ export async function erc1155mintTo(fastify: FastifyInstance) {
106106
animation_url: metadata.animation_url ?? undefined,
107107
external_url: metadata.external_url ?? undefined,
108108
background_color: metadata.background_color ?? undefined,
109-
properties: metadata.properties || metadata.attributes,
109+
properties: metadata.properties ?? undefined,
110+
attributes: metadata.attributes ?? undefined,
110111
};
111112
const transaction = mintTo({
112113
contract,

src/server/routes/contract/extensions/erc721/write/mint-to.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ export async function erc721mintTo(fastify: FastifyInstance) {
101101
animation_url: metadata.animation_url ?? undefined,
102102
external_url: metadata.external_url ?? undefined,
103103
background_color: metadata.background_color ?? undefined,
104-
properties: metadata.properties || metadata.attributes,
104+
properties: metadata.properties ?? undefined,
105+
attributes: metadata.attributes ?? undefined,
105106
};
106107
const transaction = mintTo({
107108
contract,

0 commit comments

Comments
 (0)