mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +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) {
|
function selectChainId (metamaskState) {
|
||||||
const { network, provider: { chaindId } } = metamaskState
|
const { network, provider: { chainId } } = metamaskState
|
||||||
return standardNetworkId[network] || `0x${parseInt(chaindId, 10).toString(16)}`
|
return standardNetworkId[network] || `0x${parseInt(chainId, 10).toString(16)}`
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = selectChainId
|
module.exports = selectChainId
|
||||||
|
Loading…
x
Reference in New Issue
Block a user