File tree Expand file tree Collapse file tree 3 files changed +256
-162
lines changed
src/server/routes/contract/read Expand file tree Collapse file tree 3 files changed +256
-162
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 11import { Type , type Static } from "@sinclair/typebox" ;
22import type { FastifyInstance } from "fastify" ;
33import { StatusCodes } from "http-status-codes" ;
4+ import SuperJSON from "superjson" ;
45import {
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 " ;
1112import { resolvePromisedValue , type AbiFunction } from "thirdweb/utils" ;
1213import { decodeAbiParameters } from "viem/utils" ;
1314import { 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 (
You can’t perform that action at this time.
0 commit comments