From b9573474a8214a7f9ef88680683a54e4e7106bf3 Mon Sep 17 00:00:00 2001 From: Nabarun Date: Mon, 4 Nov 2024 08:59:20 +0000 Subject: [PATCH] Upgrade WalletConnect version to `2.16.1` (#27) Part of [Service provider auctions for web deployments](https://www.notion.so/Service-provider-auctions-for-web-deployments-104a6b22d47280dbad51d28aa3a91d75) - Upgrade WallectConnect to version `2.16.1` - Part of https://git.vdb.to/cerc-io/snowballtools-base/issues/24 - Change GitHub access to `public_repo` and `user` - Part of https://git.vdb.to/cerc-io/snowballtools-base/issues/22 Co-authored-by: Shreerang Kale Reviewed-on: https://git.vdb.to/cerc-io/snowballtools-base/pulls/27 Co-authored-by: Nabarun Co-committed-by: Nabarun --- build-webapp.sh | 1 - .../backend/test/fixtures/organizations.json | 5 - packages/frontend/.env.example | 3 - packages/frontend/package.json | 2 +- .../components/projects/create/Configure.tsx | 2 +- .../projects/create/ConnectAccount.tsx | 2 +- .../projects/create/ConnectWallet.tsx | 2 +- .../src/context/WalletConnectContext.tsx | 6 +- .../projects/create/template/index.tsx | 2 +- yarn.lock | 282 ++++++++++++------ 10 files changed, 198 insertions(+), 109 deletions(-) diff --git a/build-webapp.sh b/build-webapp.sh index 9608dbf2..c763a706 100755 --- a/build-webapp.sh +++ b/build-webapp.sh @@ -20,7 +20,6 @@ VITE_LIT_RELAY_API_KEY = 'LACONIC_HOSTED_CONFIG_lit_relay_api_key' VITE_BUGSNAG_API_KEY = 'LACONIC_HOSTED_CONFIG_bugsnag_api_key' VITE_PASSKEY_WALLET_RPID = 'LACONIC_HOSTED_CONFIG_passkey_wallet_rpid' VITE_TURNKEY_API_BASE_URL = 'LACONIC_HOSTED_CONFIG_turnkey_api_base_url' -VITE_TURNKEY_ORGANIZATION_ID = 'LACONIC_HOSTED_CONFIG_turnkey_organization_id' EOF yarn || exit 1 diff --git a/packages/backend/test/fixtures/organizations.json b/packages/backend/test/fixtures/organizations.json index 19735cca..0d688fb2 100644 --- a/packages/backend/test/fixtures/organizations.json +++ b/packages/backend/test/fixtures/organizations.json @@ -3,10 +3,5 @@ "id": "2379cf1f-a232-4ad2-ae14-4d881131cc26", "name": "Deploy Tools", "slug": "deploy-tools" - }, - { - "id": "7eb9b3eb-eb74-4b53-b59a-69884c82a7fb", - "name": "Laconic", - "slug": "laconic-2" } ] diff --git a/packages/frontend/.env.example b/packages/frontend/.env.example index ac6ba474..74968931 100644 --- a/packages/frontend/.env.example +++ b/packages/frontend/.env.example @@ -8,12 +8,9 @@ VITE_WALLET_CONNECT_ID= VITE_LIT_RELAY_API_KEY= -VITE_ALCHEMY_API_KEY= - VITE_BUGSNAG_API_KEY= VITE_PASSKEY_WALLET_RPID= VITE_TURNKEY_API_BASE_URL= -VITE_TURNKEY_ORGANIZATION_ID= VITE_LACONICD_CHAIN_ID= diff --git a/packages/frontend/package.json b/packages/frontend/package.json index b0104445..b36beb2b 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -41,7 +41,7 @@ "@turnkey/http": "^2.10.0", "@turnkey/sdk-react": "^0.1.0", "@turnkey/webauthn-stamper": "^0.5.0", - "@walletconnect/ethereum-provider": "^2.12.2", + "@walletconnect/ethereum-provider": "^2.16.1", "@web3modal/siwe": "4.0.5", "@web3modal/wagmi": "4.0.5", "assert": "^2.1.0", diff --git a/packages/frontend/src/components/projects/create/Configure.tsx b/packages/frontend/src/components/projects/create/Configure.tsx index 64c9c24b..3685db1f 100644 --- a/packages/frontend/src/components/projects/create/Configure.tsx +++ b/packages/frontend/src/components/projects/create/Configure.tsx @@ -533,7 +533,7 @@ const Configure = () => { Connect to your wallet - {accounts && accounts?.length > 0 && ( + {accounts.length > 0 && (