Skip to content

Commit 1a088a0

Browse files
committed
feat: added chainId hex string
1 parent 794e495 commit 1a088a0

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/core",
3-
"version": "2.22.2",
3+
"version": "2.22.3",
44
"description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"keywords": [
66
"Ethereum",

packages/core/src/utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export const chainIdToLabel: Record<string, string> = {
115115
'0xa4b1': 'Arbitrum One',
116116
'0xa4ba': 'Arbitrum Nova',
117117
'0x27bc86aa': 'Degen',
118-
'???': 'SNAX'
118+
'0x890': 'SNAX'
119119
}
120120

121121
export function validEnsChain(chainId: ChainId): string | null {
@@ -166,7 +166,7 @@ export const networkToChainId: Record<string, ChainId> = {
166166
'fantom-main': '0xfa',
167167
'matic-mumbai': '0x80001',
168168
degen: '0x27bc86aa',
169-
SNAX: '???'
169+
SNAX: '0x890'
170170
}
171171

172172
export const chainStyles: Record<string, ChainStyle> = {
@@ -238,9 +238,9 @@ export const chainStyles: Record<string, ChainStyle> = {
238238
icon: degenIcon,
239239
color: '#a36dfe'
240240
},
241-
'???': {
241+
'0x890': {
242242
icon: snaxIcon,
243-
color: '???'
243+
color: '#00D1FF'
244244
}
245245
}
246246

yarn.lock

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5522,6 +5522,24 @@
55225522
"@walletconnect/window-getters" "^1.0.1"
55235523
tslib "1.14.1"
55245524

5525+
"@web3-onboard/core@2.22.2":
5526+
version "2.22.2"
5527+
resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.22.2.tgz#fa55abebc251ef9195ebcfde3cbaddbb934859bd"
5528+
integrity sha512-g0oO1hHdifKO/PqOn9kM7ZVnhvJssrcWmKkd1MFcA1Jp+WWHgLrYxznw6ql9ii5PqaOUMT1Oi0ZwnrKx798bNA==
5529+
dependencies:
5530+
"@web3-onboard/common" "^2.4.1"
5531+
bnc-sdk "^4.6.7"
5532+
bowser "^2.11.0"
5533+
eventemitter3 "^4.0.7"
5534+
joi "17.9.1"
5535+
lodash.merge "^4.6.2"
5536+
lodash.partition "^4.6.0"
5537+
nanoid "^4.0.0"
5538+
rxjs "^7.5.5"
5539+
svelte "^3.49.0"
5540+
svelte-i18n "^3.3.13"
5541+
viem "2.12.0"
5542+
55255543
"@web3-onboard/gnosis@^2.3.1":
55265544
version "2.3.1"
55275545
resolved "https://registry.yarnpkg.com/@web3-onboard/gnosis/-/gnosis-2.3.1.tgz#e62b4095097a3d59848eb01986616f6909d5f936"

0 commit comments

Comments
 (0)