Skip to content

Commit 60a02e3

Browse files
fix(ui-kit): revert environment and polyfil changes
1 parent ad46f8d commit 60a02e3

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

packages/ui-kit/src/lib/constants/environment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export type ConfigType = {
1111

1212
export const WALLET_CONFIG_URL = {
1313
[PUSH_NETWORK.MAINNET]: 'https://wallet.push.org',
14-
[PUSH_NETWORK.TESTNET]: 'https://wallet-alpha.push.org',
15-
[PUSH_NETWORK.TESTNET_DONUT]: 'https://wallet-alpha.push.org',
14+
[PUSH_NETWORK.TESTNET]: 'https://wallet.push.org',
15+
[PUSH_NETWORK.TESTNET_DONUT]: 'https://wallet.push.org',
1616
[PUSH_NETWORK.LOCALNET]: 'http://localhost:5173',
1717
};
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
// import { Buffer as PolyBuffer } from 'buffer';
2-
// import type { Buffer as BufferType } from 'buffer';
1+
import { Buffer as PolyBuffer } from 'buffer';
2+
import type { Buffer as BufferType } from 'buffer';
33

4-
// declare global {
5-
// // eslint-disable-next-line no-var
6-
// var Buffer: BufferType;
7-
// }
4+
declare global {
5+
// eslint-disable-next-line no-var
6+
var Buffer: BufferType;
7+
}
88

9-
// const g: any = globalThis;
10-
// if (!g.Buffer || !g.Buffer.from || !g.Buffer.alloc) g.Buffer = PolyBuffer;
9+
const g: any = globalThis;
10+
if (!g.Buffer || !g.Buffer.from || !g.Buffer.alloc) g.Buffer = PolyBuffer;
1111

12-
// if (typeof globalThis.process === 'undefined') {
13-
// (globalThis as any).process = { env: {} };
14-
// }
12+
if (typeof globalThis.process === 'undefined') {
13+
(globalThis as any).process = { env: {} };
14+
}
1515

16-
// if (typeof globalThis.global === 'undefined') {
17-
// (globalThis as any).global = globalThis;
18-
// }
16+
if (typeof globalThis.global === 'undefined') {
17+
(globalThis as any).global = globalThis;
18+
}

0 commit comments

Comments
 (0)