1
0
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:
Bruno Barbieri 2019-11-22 17:25:44 -05:00 committed by Mark Stacey
parent 4190b397d1
commit 5798a9e5f1

View File

@ -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