mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-25 11:57:56 +00:00
fix: resolve lint errors in Edge Functions
This commit is contained in:
@@ -19,13 +19,13 @@
|
||||
* e. Mark as completed
|
||||
*/
|
||||
|
||||
// @ts-ignore - Deno imports
|
||||
// @ts-expect-error - Deno imports
|
||||
import { serve } from "https://deno.land/std@0.168.0/http/server.ts";
|
||||
// @ts-ignore - Deno imports
|
||||
// @ts-expect-error - Deno imports
|
||||
import { createClient } from "https://esm.sh/@supabase/supabase-js@2";
|
||||
// @ts-ignore - Polkadot imports for Deno
|
||||
// @ts-expect-error - Polkadot imports for Deno
|
||||
import { ApiPromise, WsProvider, Keyring } from "https://esm.sh/@polkadot/api@11.0.2";
|
||||
// @ts-ignore - Deno imports
|
||||
// @ts-expect-error - Deno imports
|
||||
import { cryptoWaitReady } from "https://esm.sh/@polkadot/util-crypto@12.6.2";
|
||||
|
||||
// Configuration
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
* 5. Creates audit record
|
||||
*/
|
||||
|
||||
// @ts-ignore - Deno imports
|
||||
// @ts-expect-error - Deno imports
|
||||
import { serve } from "https://deno.land/std@0.168.0/http/server.ts";
|
||||
// @ts-ignore - Deno imports
|
||||
// @ts-expect-error - Deno imports
|
||||
import { createClient } from "https://esm.sh/@supabase/supabase-js@2";
|
||||
// @ts-ignore - Polkadot imports for Deno
|
||||
// @ts-expect-error - Polkadot imports for Deno
|
||||
import { ApiPromise, WsProvider } from "https://esm.sh/@polkadot/api@11.0.2";
|
||||
|
||||
// Configuration
|
||||
@@ -66,7 +66,7 @@ function findTransferInEvents(
|
||||
|
||||
// Asset transfer (PEZ)
|
||||
if (token === "PEZ" && event.section === "assets" && event.method === "Transferred") {
|
||||
const [_assetId, from, to, amount] = event.data as [
|
||||
const [, from, to, amount] = event.data as [
|
||||
unknown,
|
||||
{ toString: () => string },
|
||||
{ toString: () => string },
|
||||
|
||||
Reference in New Issue
Block a user