Skip to content

Commit 5a9143d

Browse files
committed
Back to hashrouter
1 parent ab5f913 commit 5a9143d

File tree

7 files changed

+10
-33
lines changed

7 files changed

+10
-33
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"scripts": {
3232
"typechain": "typechain --target=web3-v1 ./src/abis/**/*.json --out-dir src/generated",
3333
"start": "react-scripts start",
34-
"build": "react-scripts build",
34+
"build": "react-scripts --max_old_space_size=4096 build",
3535
"test": "react-scripts test",
3636
"eject": "react-scripts eject",
3737
"format": "prettier --write .",
@@ -51,10 +51,9 @@
5151
},
5252
"license": "UNLICENSED",
5353
"dependencies": {
54-
"@celo-tools/use-contractkit": "npm:@poofcash/use-contractkit@^1.0.11",
54+
"@celo-tools/use-contractkit": "npm:@poofcash/use-contractkit@^1.0.12",
5555
"@emotion/react": "^11.4.0",
5656
"@emotion/styled": "^11.3.0",
57-
"@json-rpc-tools/ws-connection": "^2.0.0-beta.3",
5857
"@nomspace/nomspace": "^1.0.5",
5958
"@reduxjs/toolkit": "^1.6.0",
6059
"@sentry/react": "^6.7.2",

src/hooks/useCUSD.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ export const useCUSD = () => {
1111
if (!address) {
1212
return null;
1313
}
14-
const cUSD = await kit._web3Contracts.getStableToken(StableToken.cUSD);
14+
const cUSD = await kit._web3Contracts.getStableToken(
15+
StableToken.cUSD as any
16+
);
1517
const allowance = toBN(
1618
await cUSD.methods.allowance(address, FEE_MODULE_V1).call()
1719
);

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { Provider } from "react-redux";
1616
import store from "src/state";
1717
import theme from "src/theme";
1818
import { ThemeProvider } from "theme-ui";
19-
import { BrowserRouter as Router } from "react-router-dom";
19+
import { HashRouter as Router } from "react-router-dom";
2020

2121
import App from "./App";
2222
import * as serviceWorker from "./serviceWorker";

src/pages/Extend/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const Extend: React.FC = () => {
5555
try {
5656
setApproveLoading(true);
5757
const cUSD = await kit._web3Contracts.getStableToken(
58-
StableToken.cUSD
58+
StableToken.cUSD as any
5959
);
6060
const tx = await cUSD.methods
6161
.approve(FEE_MODULE_V1, MaxUint256.toString())

src/pages/Request/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const Request: React.FC = () => {
4242
if (!kit || !nom) {
4343
return;
4444
}
45-
const cUSD = await kit.contracts.getStableToken(StableToken.cUSD);
45+
const cUSD = await kit.contracts.getStableToken(StableToken.cUSD as any);
4646
const tx = await cUSD
4747
.transfer(nom.resolution, toWei(amount))
4848
.send({ from: kit.defaultAccount, gasPrice: toWei("0.5", "gwei") });

src/pages/Reserve/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const Reserve: React.FC = () => {
5555
try {
5656
setApproveLoading(true);
5757
const cUSD = await kit._web3Contracts.getStableToken(
58-
StableToken.cUSD
58+
StableToken.cUSD as any
5959
);
6060
const tx = await cUSD.methods
6161
.approve(FEE_MODULE_V1, MaxUint256.toString())

yarn.lock

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@
10771077
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
10781078
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
10791079

1080-
"@celo-tools/use-contractkit@npm:@poofcash/use-contractkit@^1.0.11":
1080+
"@celo-tools/use-contractkit@npm:@poofcash/use-contractkit@^1.0.12":
10811081
version "1.0.12"
10821082
resolved "https://registry.yarnpkg.com/@poofcash/use-contractkit/-/use-contractkit-1.0.12.tgz#f2026010160281aabf1526348b5036bca32737ba"
10831083
integrity sha512-6Tv/8yCaFqRs32A81Jk4KHgf1wwX1r7e0oAKQ5ndsINY55C6omVnvVULKeJ0EYVCEgVe7FOEX1Xon0bzKXL7kQ==
@@ -2012,13 +2012,6 @@
20122012
dependencies:
20132013
keyvaluestorage-interface "^1.0.0"
20142014

2015-
"@json-rpc-tools/types@^2.0.0-beta.12":
2016-
version "2.0.0-beta.12"
2017-
resolved "https://registry.yarnpkg.com/@json-rpc-tools/types/-/types-2.0.0-beta.12.tgz#358f77c48a844a3f55169c2db3b35c6af1cf4e8b"
2018-
integrity sha512-UM8w0RnD4DjYql/HlThe051ivW2Q8ulWarr7ux5Aas1UsOmcGQEg4slQo46p+BXgh1Nth7SHWS2tVnW/UUnCwQ==
2019-
dependencies:
2020-
keyvaluestorage-interface "^1.0.0"
2021-
20222015
"@json-rpc-tools/utils@^1.4.0", "@json-rpc-tools/utils@^1.6.4", "@json-rpc-tools/utils@^1.7.6":
20232016
version "1.7.6"
20242017
resolved "https://registry.yarnpkg.com/@json-rpc-tools/utils/-/utils-1.7.6.tgz#67f04987dbaa2e7adb6adff1575367b75a9a9ba1"
@@ -2027,23 +2020,6 @@
20272020
"@json-rpc-tools/types" "^1.7.6"
20282021
"@pedrouid/environment" "^1.0.1"
20292022

2030-
"@json-rpc-tools/utils@^2.0.0-beta.3":
2031-
version "2.0.0-beta.12"
2032-
resolved "https://registry.yarnpkg.com/@json-rpc-tools/utils/-/utils-2.0.0-beta.12.tgz#40be0f4c07e176d7fc14a441fbbf1bd1a0f9847f"
2033-
integrity sha512-7j3REzegFNXdgA0rjllNKz84ikIAXm4Yv3mO8Lx9D64hUOU2tUZfELtKEm2wr8FsP5if46Xl9ZH/Ch7JB4nXJQ==
2034-
dependencies:
2035-
"@json-rpc-tools/types" "^2.0.0-beta.12"
2036-
"@pedrouid/environment" "^1.0.1"
2037-
2038-
"@json-rpc-tools/ws-connection@^2.0.0-beta.3":
2039-
version "2.0.0-beta.3"
2040-
resolved "https://registry.yarnpkg.com/@json-rpc-tools/ws-connection/-/ws-connection-2.0.0-beta.3.tgz#383ae45c5a6c7765fe334a800c76a187b8cca065"
2041-
integrity sha512-cDAlcFTOZFI9y0TzgNFth1CJYqNG56+2v14+VrBflaWU89XhVmbzd3hEtwh0ejoHsmh3JLrETUlErMxfnR9xcg==
2042-
dependencies:
2043-
"@json-rpc-tools/utils" "^2.0.0-beta.3"
2044-
safe-json-utils "^1.1.1"
2045-
ws "^7.4.0"
2046-
20472023
"@ledgerhq/devices@^5.11.0", "@ledgerhq/devices@^5.51.1":
20482024
version "5.51.1"
20492025
resolved "https://registry.yarnpkg.com/@ledgerhq/devices/-/devices-5.51.1.tgz#d741a4a5d8f17c2f9d282fd27147e6fe1999edb7"

0 commit comments

Comments
 (0)