Skip to content

Commit 302f1f9

Browse files
committed
bump thirdweb + serialise bigint
1 parent adb4d58 commit 302f1f9

File tree

3 files changed

+256
-162
lines changed

3 files changed

+256
-162
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"prom-client": "^15.1.3",
7070
"prool": "^0.0.16",
7171
"superjson": "^2.2.1",
72-
"thirdweb": "5.61.3",
72+
"thirdweb": "5.69.0",
7373
"uuid": "^9.0.1",
7474
"winston": "^3.14.1",
7575
"zod": "^3.23.8"

src/server/routes/contract/read/read-batch.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { Type, type Static } from "@sinclair/typebox";
22
import type { FastifyInstance } from "fastify";
33
import { StatusCodes } from "http-status-codes";
4+
import SuperJSON from "superjson";
45
import {
56
getContract,
67
prepareContractCall,
78
readContract,
89
resolveMethod,
910
} from "thirdweb";
10-
import { prepareMethod } from "thirdweb/dist/types/utils/abi/prepare-method";
11+
import { prepareMethod } from "thirdweb/contract";
1112
import { resolvePromisedValue, type AbiFunction } from "thirdweb/utils";
1213
import { decodeAbiParameters } from "viem/utils";
1314
import { getChain } from "../../../../utils/chain";
@@ -153,7 +154,9 @@ export async function readMulticall(fastify: FastifyInstance) {
153154
});
154155

155156
reply.status(StatusCodes.OK).send({
156-
results: processedResults,
157+
results: SuperJSON.serialize(processedResults).json as Static<
158+
typeof responseSchema
159+
>["results"],
157160
});
158161
} catch (e) {
159162
throw createCustomError(

0 commit comments

Comments
 (0)