We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90dbb10 commit f8ea210Copy full SHA for f8ea210
packages/controller-utils/src/util.ts
@@ -28,7 +28,10 @@ export function isSafeChainId(chainId: Hex): boolean {
28
if (!isHexString(chainId)) {
29
return false;
30
}
31
- const decimalChainId = Number.parseInt(chainId);
+ const decimalChainId = Number.parseInt(
32
+ chainId,
33
+ isStrictHexString(chainId) ? 16 : 10,
34
+ );
35
return (
36
Number.isSafeInteger(decimalChainId) &&
37
decimalChainId > 0 &&
0 commit comments