Skip to content

Commit 8a2acfb

Browse files
committed
Fix IB comments
1 parent 532d15d commit 8a2acfb

File tree

8 files changed

+32
-10
lines changed

8 files changed

+32
-10
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
import "./index.css";
22

33
import ReactDOM from "react-dom/client";
4+
// IMP START - Setup Web3Auth Provider
45
import { Web3AuthProvider } from "@web3auth/modal-react-hooks";
56
import web3AuthContextConfig from "./web3authContext";
7+
// IMP END - Setup Web3Auth Provider
68

79
import App from "./App";
810

911
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
12+
// IMP START - Setup Web3Auth Provider
1013
<Web3AuthProvider config={web3AuthContextConfig}>
1114
<App />
1215
</Web3AuthProvider>
16+
// IMP END - Setup Web3Auth Provider
1317
);

web-modal-sdk/quick-starts/react-hooks-modal-quick-start/src/web3authContext.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const chainConfig = {
2424
};
2525
// IMP END - Chain Config
2626

27-
// IMP START - SDK Initialization
27+
// IMP START - Instantiate SDK
2828
const privateKeyProvider = new EthereumPrivateKeyProvider({
2929
config: {
3030
chainConfig,
@@ -37,17 +37,19 @@ const web3AuthOptions: Web3AuthOptions = {
3737
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
3838
privateKeyProvider,
3939
};
40-
// IMP END - SDK Initialization
40+
// IMP END - Instantiate SDK
4141

4242
// IMP START - Configuring External Wallets
4343
const adapters = getDefaultExternalAdapters({ options: web3AuthOptions });
4444
// IMP END - Configuring External Wallets
4545

46+
// IMP START - Instantiate SDK
4647
const web3AuthContextConfig = {
4748
web3AuthOptions,
4849
// IMP START - Configuring External Wallets
4950
adapters: [...adapters],
5051
// IMP END - Configuring External Wallets
5152
};
53+
// IMP END - Instantiate SDK
5254

5355
export default web3AuthContextConfig;

web-modal-sdk/quick-starts/vue-composables-modal-quick-start/src/App.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
<script setup lang="ts">
22
import Home from "./Home.vue";
3+
// IMP START - Setup Web3Auth Provider
34
import { Web3AuthProvider } from "@web3auth/modal-vue-composables"
45
import web3AuthContextConfig from "./web3authContext";
6+
// IMP END - Setup Web3Auth Provider
57
</script>
68

79
<template>
810
<div class="min-h-screen flex flex-col">
11+
<!-- IMP START - Setup Web3Auth Provider -->
912
<Web3AuthProvider :config="web3AuthContextConfig">
1013
<Home />
1114
</Web3AuthProvider>
15+
<!-- IMP END - Setup Web3Auth Provider -->
1216
</div>
1317
</template>
1418

web-modal-sdk/quick-starts/vue-composables-modal-quick-start/src/web3authContext.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const chainConfig = {
2424
};
2525
// IMP END - Chain Config
2626

27-
// IMP START - SDK Initialization
27+
// IMP START - Instantiate SDK
2828
const privateKeyProvider = new EthereumPrivateKeyProvider({
2929
config: {
3030
chainConfig,
@@ -37,17 +37,19 @@ const web3AuthOptions: Web3AuthOptions = {
3737
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
3838
privateKeyProvider,
3939
};
40-
// IMP END - SDK Initialization
40+
// IMP END - Instantiate SDK
4141

4242
// IMP START - Configuring External Wallets
4343
const adapters = getDefaultExternalAdapters({ options: web3AuthOptions });
4444
// IMP END - Configuring External Wallets
4545

46+
// IMP START - Instantiate SDK
4647
const web3AuthContextConfig = {
4748
web3AuthOptions,
4849
// IMP START - Configuring External Wallets
4950
adapters: [...adapters],
5051
// IMP END - Configuring External Wallets
5152
};
53+
// IMP END - Instantiate SDK
5254

5355
export default web3AuthContextConfig;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
import "./index.css";
22

33
import ReactDOM from "react-dom/client";
4+
// IMP START - Setup Web3Auth Provider
45
import { Web3AuthProvider } from "@web3auth/no-modal-react-hooks";
56
import web3AuthContextConfig from "./web3authContext";
7+
// IMP END - Setup Web3Auth Provider
68

79
import App from "./App";
810

911
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
12+
// IMP START - Setup Web3Auth Provider
1013
<Web3AuthProvider config={web3AuthContextConfig}>
1114
<App />
1215
</Web3AuthProvider>
16+
// IMP END - Setup Web3Auth Provider
1317
);

web-no-modal-sdk/quick-starts/react-hooks-no-modal-quick-start/src/web3authContext.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const chainConfig = {
2424
};
2525
// IMP END - Chain Config
2626

27-
// IMP START - SDK Initialization
27+
// IMP START - Instantiate SDK
2828
const privateKeyProvider = new EthereumPrivateKeyProvider({
2929
config: {
3030
chainConfig,
@@ -39,18 +39,19 @@ const web3AuthOptions: Web3AuthNoModalOptions = {
3939
};
4040

4141
const authAdapter = new AuthAdapter();
42-
// IMP END - SDK Initialization
42+
// IMP END - Instantiate SDK
4343

4444
// IMP START - Configuring External Wallets
4545
const adapters = getDefaultExternalAdapters({ options: web3AuthOptions });
4646
// IMP END - Configuring External Wallets
4747

48-
48+
// IMP START - Instantiate SDK
4949
const web3AuthContextConfig = {
5050
web3AuthOptions,
5151
// IMP START - Configuring External Wallets
5252
adapters: [authAdapter, ...adapters],
5353
// IMP END - Configuring External Wallets
5454
};
55+
// IMP END - Instantiate SDK
5556

5657
export default web3AuthContextConfig;

web-no-modal-sdk/quick-starts/vue-composables-no-modal-quick-start/src/App.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
<script setup lang="ts">
22
import Home from "./Home.vue";
3+
// IMP START - Setup Web3Auth Provider
34
import { Web3AuthProvider } from "@web3auth/no-modal-vue-composables"
45
import web3AuthContextConfig from "./web3authContext";
6+
// IMP END - Setup Web3Auth Provider
57
</script>
68

79
<template>
810
<div class="min-h-screen flex flex-col">
11+
<!-- IMP START - Setup Web3Auth Provider -->
912
<Web3AuthProvider :config="web3AuthContextConfig">
1013
<Home msg="Welcome to Your Vue.js + TypeScript App" />
1114
</Web3AuthProvider>
15+
<!-- IMP END - Setup Web3Auth Provider -->
1216
</div>
1317
</template>
1418

web-no-modal-sdk/quick-starts/vue-composables-no-modal-quick-start/src/web3authContext.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const chainConfig = {
2424
};
2525
// IMP END - Chain Config
2626

27-
// IMP START - SDK Initialization
27+
// IMP START - Instantiate SDK
2828
const privateKeyProvider = new EthereumPrivateKeyProvider({
2929
config: {
3030
chainConfig,
@@ -39,18 +39,19 @@ const web3AuthOptions: Web3AuthNoModalOptions = {
3939
};
4040

4141
const authAdapter = new AuthAdapter();
42-
// IMP END - SDK Initialization
42+
// IMP END - Instantiate SDK
4343

4444
// IMP START - Configuring External Wallets
4545
const adapters = getDefaultExternalAdapters({ options: web3AuthOptions });
4646
// IMP END - Configuring External Wallets
4747

48-
48+
// IMP START - Instantiate SDK
4949
const web3AuthContextConfig = {
5050
web3AuthOptions,
5151
// IMP START - Configuring External Wallets
5252
adapters: [authAdapter, ...adapters],
5353
// IMP END - Configuring External Wallets
5454
};
55+
// IMP END - Instantiate SDK
5556

5657
export default web3AuthContextConfig;

0 commit comments

Comments
 (0)