Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Add polygon and BSC to supported chains for WalletConnect #2473

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/screens/Account/hooks/useActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export default function useActions({ account, parentAccount, colors }: Props) {
const decorators = perFamilyAccountActions[mainAccount?.currency?.family];

const isEthereum = currency.id === "ethereum";
const isWalletConnectSupported = ["ethereum", "bsc", "polygon"].includes(
currency.id,
);

const accountId = account.id;

Expand Down Expand Up @@ -123,7 +126,7 @@ export default function useActions({ account, parentAccount, colors }: Props) {
},
]
: []),
...(isEthereum
...(isWalletConnectSupported
? [
{
navigationParams: [
Expand Down
4 changes: 3 additions & 1 deletion src/screens/WalletConnect/DeeplinkingSelectAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ class SendFundsSelectAccount extends Component<Props, State> {
list={allAccounts.filter(
account =>
account.type === "Account" &&
getAccountCurrency(account).id === "ethereum",
["ethereum", "bsc", "polygon"].includes(
getAccountCurrency(account).id,
),
)}
inputWrapperStyle={styles.padding}
renderList={this.renderList}
Expand Down