File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/server/routes/contract/extensions Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- import { Type , type Static } from "@sinclair/typebox" ;
1
+ import { type Static , Type } from "@sinclair/typebox" ;
2
2
import type { FastifyInstance } from "fastify" ;
3
3
import { StatusCodes } from "http-status-codes" ;
4
4
import { getContract } from "thirdweb" ;
@@ -105,7 +105,7 @@ export async function erc1155mintTo(fastify: FastifyInstance) {
105
105
animation_url : metadata . animation_url ?? undefined ,
106
106
external_url : metadata . external_url ?? undefined ,
107
107
background_color : metadata . background_color ?? undefined ,
108
- properties : metadata . properties ,
108
+ properties : metadata . properties || metadata . attributes ,
109
109
} ;
110
110
const transaction = mintTo ( {
111
111
contract,
Original file line number Diff line number Diff line change 1
- import { Type , type Static } from "@sinclair/typebox" ;
1
+ import { type Static , Type } from "@sinclair/typebox" ;
2
2
import type { FastifyInstance } from "fastify" ;
3
3
import { StatusCodes } from "http-status-codes" ;
4
4
import { getContract } from "thirdweb" ;
@@ -100,7 +100,7 @@ export async function erc721mintTo(fastify: FastifyInstance) {
100
100
animation_url : metadata . animation_url ?? undefined ,
101
101
external_url : metadata . external_url ?? undefined ,
102
102
background_color : metadata . background_color ?? undefined ,
103
- properties : metadata . properties ,
103
+ properties : metadata . properties || metadata . attributes ,
104
104
} ;
105
105
const transaction = mintTo ( {
106
106
contract,
You can’t perform that action at this time.
0 commit comments