Skip to content

Commit

Permalink
[TOOL-2900]: Fix metadata.attributes being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
dirtycajunrice committed Jan 2, 2025
1 parent 996bb28 commit 68def00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Type, type Static } from "@sinclair/typebox";
import { type Static, Type } from "@sinclair/typebox";
import type { FastifyInstance } from "fastify";
import { StatusCodes } from "http-status-codes";
import { getContract } from "thirdweb";
Expand Down Expand Up @@ -105,7 +105,7 @@ 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,
properties: metadata.properties || metadata.attributes,
};
const transaction = mintTo({
contract,
Expand Down
4 changes: 2 additions & 2 deletions src/server/routes/contract/extensions/erc721/write/mint-to.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Type, type Static } from "@sinclair/typebox";
import { type Static, Type } from "@sinclair/typebox";
import type { FastifyInstance } from "fastify";
import { StatusCodes } from "http-status-codes";
import { getContract } from "thirdweb";
Expand Down Expand Up @@ -100,7 +100,7 @@ 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,
properties: metadata.properties || metadata.attributes,
};
const transaction = mintTo({
contract,
Expand Down

0 comments on commit 68def00

Please sign in to comment.