File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/server/routes/contract/read Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify";
33import { StatusCodes } from "http-status-codes" ;
44import type { AbiParameters } from "ox" ;
55import { readContract as readContractV5 , resolveMethod } from "thirdweb" ;
6- import { parseAbiParams } from "thirdweb/utils" ;
6+ import { parseAbiParams , stringify } from "thirdweb/utils" ;
77import type { AbiFunction } from "thirdweb/utils" ;
88import { getContractV5 } from "../../../../shared/utils/cache/get-contractv5" ;
99import { prettifyError } from "../../../../shared/utils/error" ;
@@ -100,7 +100,7 @@ export async function readContract(fastify: FastifyInstance) {
100100
101101 reply . status ( StatusCodes . OK ) . send ( {
102102 // biome-ignore lint/suspicious/noExplicitAny: data from chain
103- result : returnData as any ,
103+ result : JSON . parse ( stringify ( returnData ) ) as any ,
104104 } ) ;
105105 } ,
106106 } ) ;
You can’t perform that action at this time.
0 commit comments