palladians / pallad

Detected usage of the any type JS-0323
Anti-pattern
Critical
19 days ago2 months old
Unexpected any. Specify a different type
363          return (await this._vault.submitTransaction(
364            requestData,
365          )) as unknown as T
366        } catch (error: any) {367          throw this.createProviderRpcError(
368            4100,
369            "Unauthorized. Coudldn't broadscast transaction. Make sure nonce is correct.",
Unexpected any. Specify a different type
340          throw this.createProviderRpcError(4001, "User Rejected Request")
341        }
342        const requestData = params as Validation.SetStateData
343        await this._vault.setState(requestData as any)344        return { success: true } as unknown as T
345      }
346
Unexpected any. Specify a different type
314
315      case "mina_getState": {
316        const { query, props } = params as Validation.GetStateData
317        const credentials = await this._vault.getState(query as any, props)318        const confirmation = await this.userPrompt({
319          inputType: "confirmation",
320          metadata: {
Unexpected any. Specify a different type
225        if (args.method === "mina_signFields") {
226          const requestData = params as Validation.SignFieldsData
227          const signable = {
228            fields: requestData.fields.map((item: any) => {229              // Convert to BigInt only if the item is a number
230              if (typeof item === "number") {
231                return BigInt(item)
Unexpected any. Specify a different type
19
20  const request = async <T = any>(
21    query: string,
22    variables: Record<string, any> = {},23  ): Promise<{ ok: boolean; data?: T; message?: string }> => {
24    try {
25      const response = await graphqlClient.request<T>(query, variables)