From caf73e5367ce4b2ff6baa4ae7db06ed1271b741e Mon Sep 17 00:00:00 2001 From: Angel Hernandez Date: Thu, 5 Sep 2024 10:07:06 -0400 Subject: [PATCH 1/2] update: magic-sdk dependencies --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 825759b..abb11ad 100644 --- a/package.json +++ b/package.json @@ -26,10 +26,10 @@ "dependencies": { "@changesets/cli": "^2.24.0", "@magic-ext/oauth": "^12.3.0", - "@magic-sdk/provider": "^18.3.0", + "@magic-sdk/provider": "^28.6.0", "@wagmi/connectors": "^4.1.14", "@wagmi/core": "^2.6.5", - "magic-sdk": "^18.3.0", + "magic-sdk": "^28.6.0", "tsc-esm-fix": "^2.20.10" }, "devDependencies": { From 5b27f9a8501a32c9409c395dd511092be78daf53 Mon Sep 17 00:00:00 2001 From: Angel Hernandez Date: Thu, 5 Sep 2024 15:13:16 -0400 Subject: [PATCH 2/2] fix: use rome format --- src/lib/connectors/dedicatedWalletConnector.ts | 2 +- src/lib/utils.ts | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/lib/connectors/dedicatedWalletConnector.ts b/src/lib/connectors/dedicatedWalletConnector.ts index c48d377..b96718c 100644 --- a/src/lib/connectors/dedicatedWalletConnector.ts +++ b/src/lib/connectors/dedicatedWalletConnector.ts @@ -230,7 +230,7 @@ export function dedicatedWalletConnector({ if (isLoggedIn) return true return result !== null - } catch { } + } catch {} return false }, diff --git a/src/lib/utils.ts b/src/lib/utils.ts index dee6622..9e0fe04 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -1,9 +1,6 @@ export function normalizeChainId(chainId: string | number | bigint) { if (typeof chainId === 'string') - return Number.parseInt( - chainId, - chainId.trim().startsWith('0x') ? 16 : 10, - ) + return Number.parseInt(chainId, chainId.trim().startsWith('0x') ? 16 : 10) if (typeof chainId === 'bigint') return Number(chainId) return chainId }