Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update: magic-sdk dependencies #30

Merged
merged 2 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/connectors/dedicatedWalletConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export function dedicatedWalletConnector({
if (isLoggedIn) return true

return result !== null
} catch { }
} catch {}
return false
},

Expand Down
5 changes: 1 addition & 4 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
@@ -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
}
Loading