aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/inpage-provider.js
diff options
context:
space:
mode:
authorbitpshr <mail@bitpshr.net>2018-07-28 03:23:05 +0800
committerbitpshr <mail@bitpshr.net>2018-07-28 03:23:05 +0800
commit642ae25073c95fd0774435f6e7c11ba41d01e33c (patch)
treed1130a88e2a9ee5b805e1b670530c1808bec25fd /app/scripts/lib/inpage-provider.js
parent6d1808d20909d089df442ed3fa4fb3c6debae01a (diff)
downloadtangerine-wallet-browser-642ae25073c95fd0774435f6e7c11ba41d01e33c.tar
tangerine-wallet-browser-642ae25073c95fd0774435f6e7c11ba41d01e33c.tar.gz
tangerine-wallet-browser-642ae25073c95fd0774435f6e7c11ba41d01e33c.tar.bz2
tangerine-wallet-browser-642ae25073c95fd0774435f6e7c11ba41d01e33c.tar.lz
tangerine-wallet-browser-642ae25073c95fd0774435f6e7c11ba41d01e33c.tar.xz
tangerine-wallet-browser-642ae25073c95fd0774435f6e7c11ba41d01e33c.tar.zst
tangerine-wallet-browser-642ae25073c95fd0774435f6e7c11ba41d01e33c.zip
Add deprecation message for eth_signTypedData
Diffstat (limited to 'app/scripts/lib/inpage-provider.js')
-rw-r--r--app/scripts/lib/inpage-provider.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/scripts/lib/inpage-provider.js b/app/scripts/lib/inpage-provider.js
index 4e65f0a23..6ef511453 100644
--- a/app/scripts/lib/inpage-provider.js
+++ b/app/scripts/lib/inpage-provider.js
@@ -54,6 +54,11 @@ function MetamaskInpageProvider (connectionStream) {
// also remap ids inbound and outbound
MetamaskInpageProvider.prototype.sendAsync = function (payload, cb) {
const self = this
+
+ if (payload.method === 'eth_signTypedData') {
+ console.warn('MetaMask: This experimental version of eth_signTypedData will be deprecated in the next release in favor of the standard as defined in EIP-712. See https://git.io/fNzPl for more information on the new standard.')
+ }
+
self.rpcEngine.handle(payload, cb)
}