mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Update error message for chainId mis-match
This commit is contained in:
parent
36dd0354e7
commit
68c2554296
@ -153,7 +153,7 @@ module.exports = class TypedMessageManager extends EventEmitter {
|
|||||||
assert.equal(validation.errors.length, 0, 'Data must conform to EIP-712 schema. See https://git.io/fNtcx.')
|
assert.equal(validation.errors.length, 0, 'Data must conform to EIP-712 schema. See https://git.io/fNtcx.')
|
||||||
const chainId = data.domain.chainId
|
const chainId = data.domain.chainId
|
||||||
const activeChainId = parseInt(this.networkController.getNetworkState())
|
const activeChainId = parseInt(this.networkController.getNetworkState())
|
||||||
chainId && assert.equal(chainId, activeChainId, `Provided chainId (${activeChainId}) must match the active chainId (${activeChainId})`)
|
chainId && assert.equal(chainId, activeChainId, `Provided chainId (${chainId}) must match the active chainId (${activeChainId})`)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user