Skip to content

Commit

Permalink
update switch chain for binance
Browse files Browse the repository at this point in the history
  • Loading branch information
MickWang committed Apr 16, 2024
1 parent 1f6ff86 commit ce7e4bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions components/transaction/EthereumTransactionFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
Change wallet network to {{ l1Network.name }}
</slot>
</CommonButton>
<template v-if="connectorName === 'WalletConnect'">
<CommonButtonUnderlineText :opened="!!walletName?.includes('Binance')">If you're using the Binance Web3 Wallet, please update it to the newest version.</CommonButtonUnderlineText>
</template>
</template>
<template v-else>
<CommonButton disabled variant="primary" class="w-full">
Expand Down
6 changes: 5 additions & 1 deletion components/transaction/TransactionFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<CommonButton
v-if="
connectorName !== 'WalletConnect' ||
(connectorName === 'WalletConnect' && (walletName?.includes('OKX') || walletName?.includes('MetaMask')))
(connectorName === 'WalletConnect' && (walletName?.includes('OKX') || walletName?.includes('MetaMask') || walletName?.includes('Binance')))
"
type="submit"
:disabled="switchingNetworkInProgress"
Expand All @@ -31,6 +31,10 @@
>
Change wallet network to {{ eraNetwork.name }}
</CommonButton>
<template v-if="connectorName === 'WalletConnect'">
<CommonButtonUnderlineText :opened="!!walletName?.includes('Binance')">If you're using the Binance Web3 Wallet, please update it to the newest version.</CommonButtonUnderlineText>
</template>

<CommonButton v-else-if="walletName === 'Binance Web3'" disabled variant="primary" class="w-full">
The current version of your {{ walletName }} wallet may not support {{ eraNetwork.name }}
</CommonButton>
Expand Down

0 comments on commit ce7e4bf

Please sign in to comment.