mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Switch signature-request e2e tests to using ganache (#7859)
The signature request e2e tests were previously using ropsten. This expectation was even hard-coded into the test contract dapp. Instead the contract-dapp has been updated to use the current `chainId` when calling `signTypedData` (falling back to the `networkId` if `chainId` is not set). The fixture used by `signature-request` has been updated to use ganache.
This commit is contained in:
parent
1728d9a5aa
commit
3a2c81d8bc
@ -269,6 +269,9 @@ const initialize = () => {
|
||||
}
|
||||
|
||||
signTypedData.addEventListener('click', () => {
|
||||
const networkId = parseInt(networkDiv.innerHTML)
|
||||
const chainId = parseInt(chainIdDiv.innerHTML) || networkId
|
||||
|
||||
const typedData = {
|
||||
types: {
|
||||
EIP712Domain: [
|
||||
@ -291,7 +294,7 @@ const initialize = () => {
|
||||
domain: {
|
||||
name: 'Ether Mail',
|
||||
version: '1',
|
||||
chainId: 3,
|
||||
chainId,
|
||||
verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC',
|
||||
},
|
||||
message: {
|
||||
|
@ -27,12 +27,12 @@
|
||||
"vault": "{\"data\":\"s6TpYjlUNsn7ifhEFTkuDGBUM1GyOlPrim7JSjtfIxgTt8/6MiXgiR/CtFfR4dWW2xhq85/NGIBYEeWrZThGdKGarBzeIqBfLFhw9n509jprzJ0zc2Rf+9HVFGLw+xxC4xPxgCS0IIWeAJQ+XtGcHmn0UZXriXm8Ja4kdlow6SWinB7sr/WM3R0+frYs4WgllkwggDf2/Tv6VHygvLnhtzp6hIJFyTjh+l/KnyJTyZW1TkZhDaNDzX3SCOHT\",\"iv\":\"FbeHDAW5afeWNORfNJBR0Q==\",\"salt\":\"TxZ+WbCW6891C9LK/hbMAoUsSEW1E8pyGLVBU6x5KR8=\"}"
|
||||
},
|
||||
"NetworkController": {
|
||||
"network": "3",
|
||||
"network": "5777",
|
||||
"provider": {
|
||||
"nickname": "",
|
||||
"rpcTarget": "",
|
||||
"ticker": "ETH",
|
||||
"type": "ropsten"
|
||||
"type": "localhost"
|
||||
},
|
||||
"settings": {
|
||||
"ticker": "ETH"
|
||||
|
Loading…
Reference in New Issue
Block a user