@@ -3,18 +3,25 @@ import './styles/globals.css';
33import { walletConnectV2ProjectId } from 'config' ;
44import { EnvironmentsEnum , InitAppType } from './lib' ;
55
6- // const providers: ICustomProvider[] = [
7- // {
8- // name: 'In Memory Provider',
9- // type: 'inMemoryProvider',
10- // iconUrl: `${window.location.origin}/multiversx-white.svg`,
11- // constructor: async (options) => new InMemoryProvider(options)
12- // }
13- // ];
6+ /*
7+ // Enable this block to showcase a custom provider implementation
8+
9+ import { EnvironmentsEnum, ICustomProvider, InitAppType } from './lib';
10+ import { InMemoryProvider } from './provider/inMemoryProvider';
11+
12+ const providers: ICustomProvider[] = [
13+ {
14+ name: 'In Memory Provider',
15+ type: 'inMemoryProvider',
16+ iconUrl: `${window.location.origin}/multiversx-white.svg`,
17+ constructor: async (options) => new InMemoryProvider(options)
18+ }
19+ ];
1420
1521(window as any).multiversx = {};
1622// Option 1: Add providers using the `window.providers` array
17- // (window as any).multiversx.providers = providers;
23+ (window as any).multiversx.providers = providers;
24+ */
1825
1926export const config : InitAppType = {
2027 storage : { getStorageCallback : ( ) => sessionStorage } ,
0 commit comments