Skip to content

Commit 6461a00

Browse files
MiguelLZPFManuIOB
andauthored
Fix @walletconnect/utils issue when building web (#1252)
* fix: update overrides to update dependant dependancies in package.json Signed-off-by: Miguel_LZPF <miguel.carpena@io.builders> * fix: enable web build in GitHub action for specific module Signed-off-by: Miguel_LZPF <miguel.carpena@io.builders> * chore: bump version to 1.27.5 for all packages Signed-off-by: Miguel_LZPF <miguel.carpena@io.builders> * fix: lint web Signed-off-by: Manu Fernández <manuel@io.builders> --------- Signed-off-by: Miguel_LZPF <miguel.carpena@io.builders> Signed-off-by: Manu Fernández <manuel@io.builders> Co-authored-by: Manu Fernández <manuel@io.builders>
1 parent 0ea5f16 commit 6461a00

File tree

20 files changed

+162
-311
lines changed

20 files changed

+162
-311
lines changed

.github/actions/install-and-build/action.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ runs:
2828
shell: sh
2929
run: npm run build --workspace=cli
3030

31-
# - name: Build Web
32-
# if: ${{ inputs.module == 'web' }}
33-
# shell: sh
34-
# run: npm run build
35-
# working-directory: web
31+
- name: Build Web
32+
if: ${{ inputs.module == 'web' }}
33+
shell: sh
34+
run: npm run build --workspace=web

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hashgraph/stablecoin-npm-backend",
3-
"version": "1.27.4",
3+
"version": "1.27.5",
44
"description": "",
55
"author": "",
66
"license": "Apache-2.0",

cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hashgraph/stablecoin-npm-cli",
3-
"version": "1.27.4",
3+
"version": "1.27.5",
44
"description": "CLI for Hedera Stablecoin",
55
"main": "./build/src/index.js",
66
"bin": {

contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hashgraph/stablecoin-npm-contracts",
3-
"version": "1.27.4",
3+
"version": "1.27.5",
44
"description": "",
55
"main": "./build/typechain-types/index.js",
66
"module": "./build/typechain-types/index.js",

package-lock.json

Lines changed: 139 additions & 245 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hashgraph/hedera-stable-coin",
3-
"version": "1.27.4",
3+
"version": "1.27.5",
44
"private": true,
55
"description": "Stablecoin studio",
66
"keywords": [
@@ -11,7 +11,7 @@
1111
"license": "Apache-2.0",
1212
"scripts": {
1313
"setup": "npm run install:all",
14-
"install:all": "npm install && npm run build --workspaces && npm run prepare",
14+
"install:all": "npm install && npm run build --workspaces",
1515
"install:backend": "npm install --workspace=backend",
1616
"install:contracts": "npm install --workspace=contracts",
1717
"install:sdk": "npm install --workspace=sdk",
@@ -55,7 +55,6 @@
5555
"prettier:backend:check": "npm run prettier:check --workspace=backend",
5656
"prettier:web:check": "npm run prettier:check --workspace=web",
5757
"prettier:cli:check": "npm run prettier:check --workspace=cli",
58-
"prepare": "husky",
5958
"commitlint": "commitlint --edit"
6059
},
6160
"devDependencies": {
@@ -69,11 +68,8 @@
6968
"husky": "^9.1.7"
7069
},
7170
"overrides": {
72-
"@walletconnect/web3wallet": {
73-
"dependencies": {
74-
"@walletconnect/utils": "2.19.0"
75-
}
76-
},
71+
"@walletconnect/core": "2.19.0",
72+
"@walletconnect/sign-client": "2.19.0",
7773
"@walletconnect/utils": "2.19.0"
7874
},
7975
"workspaces": [

sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hashgraph/stablecoin-npm-sdk",
3-
"version": "1.27.4",
3+
"version": "1.27.5",
44
"description": "stablecoin studio SDK",
55
"main": "./build/cjs/src/index.js",
66
"module": "./build/esm/src/index.js",

web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hashgraph/stablecoin-dapp",
3-
"version": "1.27.4",
3+
"version": "1.27.5",
44
"files": [
55
"build/"
66
],

web/src/components/ModalWalletConnect.tsx

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import { useEffect, useState } from 'react';
2626
import { useTranslation } from 'react-i18next';
2727
import { useDispatch, useSelector } from 'react-redux';
2828
import MULTISIG_LOGO_PNG from '../assets/png/multisigLogo.png';
29-
// import HASHPACK_LOGO_PNG from '../assets/png/hashpackLogo.png';
3029
import WALLETCONNECT_LOGO_PNG from '../assets/png/WCLogo.png';
3130
import METAMASK_LOGO from '../assets/svg/MetaMask_Fox.svg';
3231
import SDKService from '../services/SDKService';
@@ -85,7 +84,7 @@ const ModalWalletConnect = () => {
8584
// eslint-disable-next-line @typescript-eslint/no-unused-vars
8685
const [error, setError] = useState<any>();
8786
const [rejected, setRejected] = useState<boolean>(false);
88-
const [hashpackSelected, setHashpackSelected] = useState<boolean>(false);
87+
const [hashpackSelected] = useState<boolean>(false);
8988
const [hwcSelected, setHwcSelected] = useState<boolean>(false);
9089
const [multiSigSelected, setMultiSigSelected] = useState<boolean>(false);
9190
const availableWallets: SupportedWallets[] = useSelector(AVAILABLE_WALLETS);
@@ -98,8 +97,6 @@ const ModalWalletConnect = () => {
9897
const { control, getValues } = useForm({
9998
mode: 'onChange',
10099
});
101-
const isMultiSigBackendConfigured =
102-
!!process.env.REACT_APP_BACKEND_URL && process.env.REACT_APP_BACKEND_URL.trim() !== '';
103100

104101
const isHWCProjectID =
105102
!!process.env.REACT_APP_PROJECT_ID && process.env.REACT_APP_PROJECT_ID.trim() !== '';
@@ -210,20 +207,6 @@ const ModalWalletConnect = () => {
210207
return factoryProxyConfig;
211208
};
212209

213-
const handleConnectHashpackWallet = () => {
214-
setHashpackSelected(true);
215-
};
216-
217-
const unHandleConnectHashpackWallet = () => {
218-
setHashpackSelected(false);
219-
setLoading(undefined);
220-
};
221-
222-
const handleConnectHashpackWalletConfirmed = () => {
223-
const values = getValues();
224-
handleWalletConnect(SupportedWallets.HASHPACK, values.networkHashpack.value);
225-
};
226-
227210
const networkOptions = [{ value: 'testnet', label: 'Testnet' }];
228211
if (
229212
process.env.REACT_APP_ONLY_TESTNET === undefined ||

web/src/components/ModalsHandler.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ import { useTranslation } from 'react-i18next';
44
import ModalAction from './ModalAction';
55
import type { ModalActionProps } from './ModalAction';
66
import ModalNotification from './ModalNotification';
7-
import { SupportedWallets } from '@hashgraph/stablecoin-npm-sdk';
8-
import { useSelector } from 'react-redux';
9-
import { LAST_WALLET_SELECTED } from '../store/slices/walletSlice';
107

118
export interface ModalsHandlerActionsProps
129
extends Pick<ModalActionProps, 'title' | 'confirmButtonLabel' | 'isOpen' | 'onClose'> {

0 commit comments

Comments
 (0)