Skip to content

Commit

Permalink
fix(example-react,example-vue): incorrect variable names (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
tien authored Nov 24, 2024
1 parent 1bf743e commit ae8c1c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions examples/react/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}),
Expand All @@ -18,23 +18,23 @@ export const config = defineConfig({
descriptor: polkadot,
provider: getSmProvider(
import("polkadot-api/chains/polkadot").then(({ chainSpec }) =>
smoldotPromise.addChain({ chainSpec }),
smoldot.addChain({ chainSpec }),
),
),
},
kusama: {
descriptor: kusama,
provider: getSmProvider(
import("polkadot-api/chains/ksmcc3").then(({ chainSpec }) =>
smoldotPromise.addChain({ chainSpec }),
smoldot.addChain({ chainSpec }),
),
),
},
westend: {
descriptor: westend,
provider: getSmProvider(
import("polkadot-api/chains/westend2").then(({ chainSpec }) =>
smoldotPromise.addChain({ chainSpec }),
smoldot.addChain({ chainSpec }),
),
),
},
Expand Down
8 changes: 4 additions & 4 deletions examples/vue/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}),
Expand All @@ -16,23 +16,23 @@ export const config = defineConfig({
descriptor: polkadot,
provider: getSmProvider(
import("polkadot-api/chains/polkadot").then(({ chainSpec }) =>
smoldotPromise.addChain({ chainSpec }),
smoldot.addChain({ chainSpec }),
),
),
},
kusama: {
descriptor: kusama,
provider: getSmProvider(
import("polkadot-api/chains/ksmcc3").then(({ chainSpec }) =>
smoldotPromise.addChain({ chainSpec }),
smoldot.addChain({ chainSpec }),
),
),
},
westend: {
descriptor: westend,
provider: getSmProvider(
import("polkadot-api/chains/westend2").then(({ chainSpec }) =>
smoldotPromise.addChain({ chainSpec }),
smoldot.addChain({ chainSpec }),
),
),
},
Expand Down

0 comments on commit ae8c1c4

Please sign in to comment.