From ae8c1c45f7fa6a1f7cb6a5e6ce6feba543b03a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ti=E1=BA=BFn=20Nguy=E1=BB=85n=20Kh=E1=BA=AFc?= Date: Sun, 24 Nov 2024 23:04:58 +1300 Subject: [PATCH] fix(example-react,example-vue): incorrect variable names (#364) --- examples/react/src/config.ts | 8 ++++---- examples/vue/src/config.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/react/src/config.ts b/examples/react/src/config.ts index b17cdf4a..b09ef6fe 100644 --- a/examples/react/src/config.ts +++ b/examples/react/src/config.ts @@ -6,7 +6,7 @@ import { WalletConnect } from "@reactive-dot/wallet-walletconnect"; import { getSmProvider } from "polkadot-api/sm-provider"; import { startFromWorker } from "polkadot-api/smoldot/from-worker"; -const smoldotPromise = startFromWorker( +const smoldot = startFromWorker( new Worker(new URL("polkadot-api/smoldot/worker", import.meta.url), { type: "module", }), @@ -18,7 +18,7 @@ export const config = defineConfig({ descriptor: polkadot, provider: getSmProvider( import("polkadot-api/chains/polkadot").then(({ chainSpec }) => - smoldotPromise.addChain({ chainSpec }), + smoldot.addChain({ chainSpec }), ), ), }, @@ -26,7 +26,7 @@ export const config = defineConfig({ descriptor: kusama, provider: getSmProvider( import("polkadot-api/chains/ksmcc3").then(({ chainSpec }) => - smoldotPromise.addChain({ chainSpec }), + smoldot.addChain({ chainSpec }), ), ), }, @@ -34,7 +34,7 @@ export const config = defineConfig({ descriptor: westend, provider: getSmProvider( import("polkadot-api/chains/westend2").then(({ chainSpec }) => - smoldotPromise.addChain({ chainSpec }), + smoldot.addChain({ chainSpec }), ), ), }, diff --git a/examples/vue/src/config.ts b/examples/vue/src/config.ts index 5900ed10..a6555402 100644 --- a/examples/vue/src/config.ts +++ b/examples/vue/src/config.ts @@ -4,7 +4,7 @@ import { InjectedWalletProvider } from "@reactive-dot/core/wallets.js"; import { getSmProvider } from "polkadot-api/sm-provider"; import { startFromWorker } from "polkadot-api/smoldot/from-worker"; -const smoldotPromise = startFromWorker( +const smoldot = startFromWorker( new Worker(new URL("polkadot-api/smoldot/worker", import.meta.url), { type: "module", }), @@ -16,7 +16,7 @@ export const config = defineConfig({ descriptor: polkadot, provider: getSmProvider( import("polkadot-api/chains/polkadot").then(({ chainSpec }) => - smoldotPromise.addChain({ chainSpec }), + smoldot.addChain({ chainSpec }), ), ), }, @@ -24,7 +24,7 @@ export const config = defineConfig({ descriptor: kusama, provider: getSmProvider( import("polkadot-api/chains/ksmcc3").then(({ chainSpec }) => - smoldotPromise.addChain({ chainSpec }), + smoldot.addChain({ chainSpec }), ), ), }, @@ -32,7 +32,7 @@ export const config = defineConfig({ descriptor: westend, provider: getSmProvider( import("polkadot-api/chains/westend2").then(({ chainSpec }) => - smoldotPromise.addChain({ chainSpec }), + smoldot.addChain({ chainSpec }), ), ), },