mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Fix chainId for non standard networks (#7502)
This commit is contained in:
parent
4190b397d1
commit
5798a9e5f1
@ -15,8 +15,8 @@ const standardNetworkId = {
|
||||
}
|
||||
|
||||
function selectChainId (metamaskState) {
|
||||
const { network, provider: { chaindId } } = metamaskState
|
||||
return standardNetworkId[network] || `0x${parseInt(chaindId, 10).toString(16)}`
|
||||
const { network, provider: { chainId } } = metamaskState
|
||||
return standardNetworkId[network] || `0x${parseInt(chainId, 10).toString(16)}`
|
||||
}
|
||||
|
||||
module.exports = selectChainId
|
||||
|
Loading…
Reference in New Issue
Block a user