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 824fd4f commit 8ff9427Copy full SHA for 8ff9427
packages/snaps-rpc-methods/src/permitted/experimentalProviderRequest.ts
@@ -16,7 +16,7 @@ import {
16
type,
17
} from '@metamask/superstruct';
18
import {
19
- numberToHex,
+ bigIntToHex,
20
parseCaipChainId,
21
type PendingJsonRpcResponse,
22
type Json,
@@ -175,10 +175,10 @@ async function providerRequestImplementation(
175
);
176
}
177
178
- const numericalChainId = parseInt(parsedChainId.reference, 10);
+ const numericalChainId = BigInt(parsedChainId.reference);
179
180
const networkConfiguration = getNetworkConfigurationByChainId(
181
- numberToHex(numericalChainId),
+ bigIntToHex(numericalChainId),
182
183
184
if (!networkConfiguration) {
0 commit comments