tiny tidying up

This commit is contained in:
Samuel Andert 2023-07-25 09:45:07 +02:00
parent 44d668d7af
commit 70fe76279e
4 changed files with 5 additions and 5 deletions

View File

@ -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';

View File

@ -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',

View File

@ -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>