From d8149a3f4beafda1ba210738c16bfd50a05c591c Mon Sep 17 00:00:00 2001 From: teodorus-nathaniel Date: Wed, 6 Mar 2024 22:37:08 +0700 Subject: [PATCH 1/3] Enable wallet before trying to get signer --- src/components/substrate/SubstrateTxButton.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/substrate/SubstrateTxButton.tsx b/src/components/substrate/SubstrateTxButton.tsx index 00b359b0d..34d16e73f 100644 --- a/src/components/substrate/SubstrateTxButton.tsx +++ b/src/components/substrate/SubstrateTxButton.tsx @@ -334,6 +334,7 @@ function TxButton({ } else { const currentWallet = getCurrentWallet() const wallet = getWalletBySource(currentWallet) + await wallet?.enable(appName) signer = wallet?.signer } From d78224424578e0b6c60e404493adff8afe27d783 Mon Sep 17 00:00:00 2001 From: teodorus-nathaniel Date: Wed, 6 Mar 2024 22:39:09 +0700 Subject: [PATCH 2/3] Change preferred wallet storage name to match grill --- src/components/wallets/wallet-list/WalletsList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/wallets/wallet-list/WalletsList.tsx b/src/components/wallets/wallet-list/WalletsList.tsx index 233b927fe..60855734c 100644 --- a/src/components/wallets/wallet-list/WalletsList.tsx +++ b/src/components/wallets/wallet-list/WalletsList.tsx @@ -14,7 +14,7 @@ import { supportedWallets } from '../supportedWallets/index' import { Wallet } from '../types' import styles from './WalletList.module.sass' -export const CURRENT_WALLET = 'CurrentWalletName' +export const CURRENT_WALLET = 'preferred-wallet' const { appName } = config From e61b16a20c14aa1bfec6f562e489d2fecab1fe51 Mon Sep 17 00:00:00 2001 From: teodorus-nathaniel Date: Wed, 6 Mar 2024 22:40:42 +0700 Subject: [PATCH 3/3] Disable maintenance --- .github/workflows/build-deploy.yml | 2 +- .github/workflows/feature-based.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index c5c94c8c2..409ae76ca 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -82,7 +82,7 @@ jobs: GH_NEXT_PUBLIC_DATAHUB_SUBSCRIPTION_URL=wss://sub-data-hub.subsocial.network/graphql-ws GH_DATAHUB_QUEUE_URL=https://sub-queue-data-hub.subsocial.network/graphql GH_DATAHUB_QUEUE_TOKEN=${{ secrets.DATAHUB_QUEUE_TOKEN }} - GH_NEXT_PUBLIC_ENABLE_MAINTENANCE_PAGE=true + # GH_NEXT_PUBLIC_ENABLE_MAINTENANCE_PAGE=true tags: | ${{ env.image }} diff --git a/.github/workflows/feature-based.yaml b/.github/workflows/feature-based.yaml index 83698bd38..487ac9ad9 100644 --- a/.github/workflows/feature-based.yaml +++ b/.github/workflows/feature-based.yaml @@ -72,7 +72,7 @@ jobs: GH_NEXT_PUBLIC_DATAHUB_SUBSCRIPTION_URL=wss://notifications-data-hub.subsocial.network/graphql-ws GH_DATAHUB_QUEUE_URL=https://notifications-queue-data-hub.subsocial.network/graphql GH_DATAHUB_QUEUE_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6dHJ1ZX0.jpXwkIJ4DpV4IvSI3eWVVXE6x89qr_GIq7IlbBv5YE0 - GH_NEXT_PUBLIC_ENABLE_MAINTENANCE_PAGE=true + # GH_NEXT_PUBLIC_ENABLE_MAINTENANCE_PAGE=true tags: | ${{ env.image }} cache-from: type=local,src=/tmp/.buildx-cache