Skip to content

Commit 3944f3f

Browse files
committed
Update UCK
1 parent 3f87451 commit 3944f3f

File tree

5 files changed

+258
-192
lines changed

5 files changed

+258
-192
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,22 @@
5151
},
5252
"license": "UNLICENSED",
5353
"dependencies": {
54-
"@celo-tools/use-contractkit": "^2.1.0",
54+
"@celo-tools/use-contractkit": "npm:@poofcash/use-contractkit@^1.0.11",
5555
"@emotion/react": "^11.4.0",
5656
"@emotion/styled": "^11.3.0",
5757
"@nomspace/nomspace": "^1.0.5",
5858
"@reduxjs/toolkit": "^1.6.0",
5959
"@sentry/react": "^6.7.2",
6060
"@sentry/tracing": "^6.7.2",
61+
"@types/qrcode.react": "^1.0.2",
62+
"@types/react-modal": "^3.13.1",
6163
"@web3-react/injected-connector": "^6.0.7",
6264
"ethers": "^5.4.1",
6365
"phosphor-react": "^1.3.1",
6466
"qrcode.react": "^1.0.1",
6567
"react": "17.0.2",
6668
"react-dom": "17.0.2",
67-
"react-modal": "^3.14.3",
69+
"react-modal": "^3.14.4",
6870
"react-redux": "^7.2.4",
6971
"react-router-dom": "^5.2.0",
7072
"react-scripts": "^4.0.3",

src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { ChainId } from "@celo-tools/use-contractkit";
22
import { toWei } from "web3-utils";
33

4-
export const NOM = {
5-
[ChainId.Mainnet]: "0xABf8faBbC071F320F222A526A2e1fBE26429344d",
4+
export const NOM: Record<number, string> = {
5+
[ChainId.Celo]: "0xABf8faBbC071F320F222A526A2e1fBE26429344d",
66
[ChainId.Alfajores]: "0x36C976Da6A6499Cad683064F849afa69CD4dec2e",
77
[ChainId.Baklava]: "",
88
};

src/hooks/useUserNoms.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const useUserNoms = () => {
1111
if (!address) {
1212
return null;
1313
}
14-
const nomKit = new NomKit(kit as any, NOM[network.chainId]);
14+
const nomKit = new NomKit(kit as any, NOM[network.chainId]!);
1515
return await nomKit.userNoms(address);
1616
}, [kit, network.chainId, address]);
1717

src/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import "@celo-tools/use-contractkit/lib/styles.css";
33
import "react-toastify/dist/ReactToastify.min.css";
44
import "src/index.css";
55

6-
import { ContractKitProvider } from "@celo-tools/use-contractkit";
6+
import {
7+
Alfajores,
8+
Celo,
9+
ContractKitProvider,
10+
} from "@celo-tools/use-contractkit";
711
import * as Sentry from "@sentry/react";
812
import { Integrations } from "@sentry/tracing";
913
import React from "react";
@@ -46,6 +50,7 @@ ReactDOM.render(
4650
description: "Protocol for name registration",
4751
url: "https://app.nom.space",
4852
icon: "https://www.nom.space/favicon-32x32.png",
53+
supportedNetworks: [Celo, Alfajores],
4954
}}
5055
>
5156
<ThemeProvider theme={theme}>

0 commit comments

Comments
 (0)