Skip to content

Commit b100c76

Browse files
Update initConfig.ts
1 parent a0d7a61 commit b100c76

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

src/initConfig.ts

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,25 @@ import './styles/globals.css';
33
import { walletConnectV2ProjectId } from 'config';
44
import { 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

1926
export const config: InitAppType = {
2027
storage: { getStorageCallback: () => sessionStorage },

0 commit comments

Comments
 (0)