Skip to content

Commit

Permalink
Update error message for chainId mis-match
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpshr committed Sep 11, 2018
1 parent edb7bba commit b5fef2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/lib/typed-message-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
const chainId = data.domain.chainId
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
}
}
Expand Down

0 comments on commit b5fef2a

Please sign in to comment.