Skip to content

Commit 3dd6c98

Browse files
1.37.2-0.0.3 : [update] - BlankWallet -> BlockWallet rebrand changes (#804)
* BlockWallet rebrand changes * include feature version
1 parent 94db1d5 commit 3dd6c98

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
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.37.2-0.0.2",
3+
"version": "1.37.2-0.0.3",
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const desktopDefaultWalletNames = [
1818
'torus',
1919
'opera',
2020
'liquality',
21-
'blankwallet'
21+
'blockwallet'
2222
]
2323

2424
const mobileDefaultWalletNames = [
@@ -236,8 +236,8 @@ function getModule(name: string): Promise<{
236236
return import('./wallets/mathwallet')
237237
case '1inch':
238238
return import('./wallets/1inch')
239-
case 'blankwallet':
240-
return import('./wallets/blankwallet')
239+
case 'blockwallet':
240+
return import('./wallets/blockwallet')
241241
case 'ronin':
242242
return import('./wallets/ronin')
243243
default:
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const blankwalletIcon = `
1+
const blockWalletIcon = `
22
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
33
<path fill-rule="evenodd" clip-rule="evenodd" d="M15 30C23.2843 30 30 23.2843 30 15C30 6.71573 23.2843 0 15 0C6.71573 0 0 6.71573 0 15C0 23.2843 6.71573 30 15 30ZM23.125 6.875H6.875V23.125H23.125V6.875Z" fill="currentColor"/>
44
</svg>
55
`
66

7-
export default blankwalletIcon
7+
export default blockWalletIcon
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { extensionInstallMessage } from '../content'
22
import { WalletModule, Helpers, CommonWalletOptions } from '../../../interfaces'
33

4-
import blankwalletIcon from '../wallet-icons/icon-blankwallet'
4+
import blockWalletIcon from '../wallet-icons/icon-blockwallet'
55

6-
function blankwallet(options: CommonWalletOptions): WalletModule {
6+
function blockwallet(options: CommonWalletOptions): WalletModule {
77
const { preferred, label, iconSrc, svg } = options
88

99
return {
10-
name: label || 'Blank Wallet',
10+
name: label || 'BlockWallet',
1111
iconSrc,
12-
svg: svg || blankwalletIcon,
12+
svg: svg || blockWalletIcon,
1313
wallet: async (helpers: Helpers) => {
1414
const {
1515
getProviderName,
@@ -24,20 +24,20 @@ function blankwallet(options: CommonWalletOptions): WalletModule {
2424
return {
2525
provider,
2626
interface:
27-
provider && getProviderName(provider) === 'BlankWallet'
27+
provider && getProviderName(provider) === 'BlockWallet'
2828
? typeof provider.enable === 'function'
2929
? createModernProviderInterface(provider)
3030
: createLegacyProviderInterface(provider)
3131
: null
3232
}
3333
},
3434
type: 'injected',
35-
link: `https://www.goblank.io/`,
35+
link: `https://www.blockwallet.io/`,
3636
installMessage: extensionInstallMessage,
3737
desktop: true,
3838
mobile: false,
3939
preferred
4040
}
4141
}
4242

43-
export default blankwallet
43+
export default blockwallet

src/utilities.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,8 @@ export function getProviderName(provider: any): string | undefined {
357357
return 'tp'
358358
}
359359

360-
if (provider.isBlank) {
361-
return 'BlankWallet'
360+
if (provider.isBlockWallet) {
361+
return 'BlockWallet'
362362
}
363363

364364
if (provider.isOneInchIOSWallet) {

0 commit comments

Comments
 (0)