1- import { Type , type Static } from "@sinclair/typebox" ;
1+ import { type Static , Type } from "@sinclair/typebox" ;
22import type { FastifyInstance } from "fastify" ;
33import { StatusCodes } from "http-status-codes" ;
44import SuperJSON from "superjson" ;
@@ -10,14 +10,14 @@ import {
1010 resolveMethod ,
1111} from "thirdweb" ;
1212import { prepareMethod } from "thirdweb/contract" ;
13- import { decodeAbiParameters } from "viem/utils" ;
1413import type { AbiFunction } from "viem" ;
15- import { createCustomError } from "../../../middleware/error" ;
16- import { getChainIdFromChain } from "../../../utils/chain" ;
17- import { standardResponseSchema } from "../../../schemas/shared-api-schemas" ;
14+ import { decodeAbiParameters } from "viem/utils" ;
1815import { getChain } from "../../../../shared/utils/chain" ;
19- import { thirdwebClient } from "../../../../shared/utils/sdk" ;
2016import { prettifyError } from "../../../../shared/utils/error" ;
17+ import { thirdwebClient } from "../../../../shared/utils/sdk" ;
18+ import { createCustomError } from "../../../middleware/error" ;
19+ import { standardResponseSchema } from "../../../schemas/shared-api-schemas" ;
20+ import { getChainIdFromChain } from "../../../utils/chain" ;
2121
2222const MULTICALL3_ADDRESS = "0xcA11bde05977b3631167028862bE2a173976CA11" ;
2323
@@ -118,7 +118,7 @@ export async function readBatchRoute(fastify: FastifyInstance) {
118118 ) ;
119119
120120 // Get Multicall3 contract
121- const multicall = await getContract ( {
121+ const multicall = getContract ( {
122122 chain,
123123 address : multicallAddress ,
124124 client : thirdwebClient ,
@@ -132,7 +132,7 @@ export async function readBatchRoute(fastify: FastifyInstance) {
132132 } ) ;
133133
134134 // Process results
135- const processedResults = results . map ( ( result : unknown , i ) => {
135+ const processedResults = results . map ( ( result : unknown , i : number ) => {
136136 const { success, returnData } = result as {
137137 success : boolean ;
138138 returnData : unknown ;
0 commit comments