From 4dfa316ec5aadb878592131acef98d76ceb79b0c Mon Sep 17 00:00:00 2001 From: MickWang <1244134672@qq.com> Date: Wed, 18 Sep 2024 16:29:13 +0800 Subject: [PATCH] update for bybit --- components/transaction/TransactionFooter.vue | 3 ++- composables/zksync/useTransaction.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/transaction/TransactionFooter.vue b/components/transaction/TransactionFooter.vue index 3253feb43..b342b93c4 100644 --- a/components/transaction/TransactionFooter.vue +++ b/components/transaction/TransactionFooter.vue @@ -22,7 +22,8 @@ v-if=" connectorName !== 'WalletConnect' || (connectorName === 'WalletConnect' && - (walletName?.includes('OKX') || walletName?.includes('MetaMask') || walletName?.includes('Binance'))) + (walletName?.includes('OKX') || walletName?.includes('MetaMask') || walletName?.includes('Binance'))) || + walletName?.includes('Bybit') " type="submit" :disabled="switchingNetworkInProgress" diff --git a/composables/zksync/useTransaction.ts b/composables/zksync/useTransaction.ts index 4bbc908ea..b7ac1e937 100644 --- a/composables/zksync/useTransaction.ts +++ b/composables/zksync/useTransaction.ts @@ -84,6 +84,7 @@ export default (getSigner: () => Promise, getProvider: () => return tx; } catch (err) { + console.error(err); error.value = formatError(err as Error); status.value = "not-started"; }