tiny tidying up
This commit is contained in:
parent
44d668d7af
commit
70fe76279e
@ -5,7 +5,7 @@
|
||||
import { ProviderType } from '@lit-protocol/constants';
|
||||
import { LitAccessControlConditionResource, LitAbility } from '@lit-protocol/auth-helpers';
|
||||
import { createMessage } from '$lib/services/messages';
|
||||
import { setupLitProvider } from '$lib/services/litProviderSetup.ts';
|
||||
import { setupLitProvider } from '$lib/services/provider/setupLitProvider';
|
||||
|
||||
const redirectUri = 'http://localhost:5173/';
|
||||
let view = 'sign_in';
|
||||
|
@ -37,7 +37,7 @@ const chronicleChain = {
|
||||
testnet: true
|
||||
};
|
||||
|
||||
export function initProvider(data: ProviderData) {
|
||||
export function initChainProvider(data: ProviderData) {
|
||||
createMessage({
|
||||
text: 'Provider setup initialization started...',
|
||||
sender: '$lib/services/provider.ts',
|
@ -1,15 +1,15 @@
|
||||
<script>
|
||||
import '../app.css';
|
||||
import { initProvider } from '$lib/services/provider/provider';
|
||||
import { initChainProvider } from '$lib/services/provider/setupChainProvider';
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
/** @type {import('$lib/services/provider/provider').ProviderData} */
|
||||
/** @type {import('$lib/services/provider/setupChainProvider').ProviderData} */
|
||||
const providerData = {
|
||||
walletConnectId: import.meta.env.VITE_WALLETCONNECT_ID
|
||||
};
|
||||
|
||||
onMount(() => {
|
||||
initProvider(providerData);
|
||||
initChainProvider(providerData);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user