Skip to content

Commit

Permalink
Merge pull request #30 from magiclabs/PDEEXP-1787-Update-Magi-Depende…
Browse files Browse the repository at this point in the history
…ncies

update: magic-sdk dependencies
  • Loading branch information
am-hernandez authored Sep 6, 2024
2 parents 1747727 + 5b27f9a commit 05d57a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
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
}

0 comments on commit 05d57a4

Please sign in to comment.