Skip to content

Commit fba1270

Browse files
monokhAdamj1232
andauthored
[injected-v2.0.13-alpha.1] : fix - Liquality wallet injection update (#1123)
* fix: liquality wallet injection * build: update package version * Update package.json * Update version in injected package.json Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>
1 parent 7c85a33 commit fba1270

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

packages/injected/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/injected-wallets",
3-
"version": "2.0.12",
3+
"version": "2.0.13-alpha.1",
44
"description": "Injected wallets module for web3-onboard",
55
"repository": "blocknative/web3-onboard",
66
"module": "dist/index.js",

packages/injected/src/wallets.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,13 +319,18 @@ const imtoken: InjectedWalletModule = {
319319

320320
const liquality: InjectedWalletModule = {
321321
label: ProviderLabel.Liquality,
322-
injectedNamespace: InjectedNameSpace.Arbitrum,
322+
injectedNamespace: InjectedNameSpace.Ethereum,
323323
checkProviderIdentity: ({ provider }) =>
324324
!!provider && !!provider[ProviderIdentityFlag.Liquality],
325325
getIcon: async () => (await import('./icons/liquality.js')).default,
326326
getInterface: async () => {
327-
const provider = window[InjectedNameSpace.Arbitrum]
327+
const provider = createEIP1193Provider(window.ethereum, {
328+
wallet_switchEthereumChain: UNSUPPORTED_METHOD,
329+
eth_selectAccounts: UNSUPPORTED_METHOD
330+
})
331+
328332
provider.removeListener = (event, func) => {}
333+
329334
return { provider }
330335
},
331336
platforms: ['desktop']

0 commit comments

Comments
 (0)