diff --git a/packages/core/package.json b/packages/core/package.json index cf147e014..2ad0d9a11 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/core", - "version": "2.18.0-alpha.1", + "version": "2.18.0-alpha.2", "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.", "keywords": [ "Ethereum", diff --git a/packages/core/src/chain.ts b/packages/core/src/chain.ts index 4868cd22a..6230a7241 100644 --- a/packages/core/src/chain.ts +++ b/packages/core/src/chain.ts @@ -36,7 +36,7 @@ async function setChain(options: { // validate that chainId has been added to chains const chain = chains.find( - ({ namespace, id }) => namespace === chainNamespace && id === chainIdHex + ({ namespace, id }) => namespace === chainNamespace && id.toLowerCase() === chainIdHex.toLowerCase() ) if (!chain) {