Skip to content

Commit 4b14cd0

Browse files
Release/1.35.5 - Master (#747)
* Generic provider is injected always when using a custom list (#743) * Generic provider is injected when Metamask is detected and already on the wallet list * Set patch package version * 1.35.4-0.0.2: [chore] Add Fantom networks (#746) * 1.35.4-0.0.2: [chore] Add Fantom networks * fix formatting * Release: 1.35.5 Co-authored-by: Daniel Sanchez <dasanra@hotmail.com>
1 parent 3334993 commit 4b14cd0

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bnc-onboard",
3-
"version": "1.35.4",
3+
"version": "1.35.5",
44
"description": "Onboard users to web3 by allowing them to select a wallet, get that wallet ready to transact and have access to synced wallet state.",
55
"keywords": [
66
"ethereum",

src/modules/select/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function select(
7575
// This wallet is built into onboard so add the walletName and
7676
// the code below will load it as a wallet module
7777
wallets.unshift({ walletName: detectedWalletName })
78-
} else if (detectedProviderName) {
78+
} else if (!detectedWalletName && detectedProviderName) {
7979
// A provider has been detected but there is not a walletName therefore
8080
// this wallet is not built into onboard so add it as a generic injected wallet
8181
wallets.unshift({ walletName: 'detectedwallet' })

src/utilities.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,9 @@ export function networkName(id: number): string {
390390
56: 'bsc',
391391
100: 'xdai',
392392
137: 'polygon',
393-
288: 'boba-mainnet'
393+
288: 'boba-mainnet',
394+
250: 'fantom-opera',
395+
4002: 'fantom-testnet'
394396
} as { [key: number]: string }
395397
)[id] || 'unknown'
396398
}

0 commit comments

Comments
 (0)