aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorbitpshr <mail@bitpshr.net>2018-09-14 03:12:08 +0800
committerbitpshr <mail@bitpshr.net>2018-09-14 03:42:27 +0800
commit42fdcf6239fc9278cfa85b6ae6cc025cef0e35ae (patch)
tree9ba844dae9ba2a5ed1fadc6dad6a733de4839d7e /ui
parent68c25542965ae89badc284bf30e1f426f27aa5ae (diff)
downloadtangerine-wallet-browser-42fdcf6239fc9278cfa85b6ae6cc025cef0e35ae.tar
tangerine-wallet-browser-42fdcf6239fc9278cfa85b6ae6cc025cef0e35ae.tar.gz
tangerine-wallet-browser-42fdcf6239fc9278cfa85b6ae6cc025cef0e35ae.tar.bz2
tangerine-wallet-browser-42fdcf6239fc9278cfa85b6ae6cc025cef0e35ae.tar.lz
tangerine-wallet-browser-42fdcf6239fc9278cfa85b6ae6cc025cef0e35ae.tar.xz
tangerine-wallet-browser-42fdcf6239fc9278cfa85b6ae6cc025cef0e35ae.tar.zst
tangerine-wallet-browser-42fdcf6239fc9278cfa85b6ae6cc025cef0e35ae.zip
Update new method namespace from v2 to v3
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/signature-request.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/components/signature-request.js b/ui/app/components/signature-request.js
index 4d078d23c..5b0c7684a 100644
--- a/ui/app/components/signature-request.js
+++ b/ui/app/components/signature-request.js
@@ -171,7 +171,7 @@ SignatureRequest.prototype.msgHexToText = function (hex) {
}
// eslint-disable-next-line react/display-name
-SignatureRequest.prototype.renderTypedDataV2 = function (data) {
+SignatureRequest.prototype.renderTypedDataV3 = function (data) {
const { domain, message } = JSON.parse(data)
return [
h('div.request-signature__typed-container', [
@@ -223,8 +223,8 @@ SignatureRequest.prototype.renderBody = function () {
}),
}, [notice]),
- h('div.request-signature__rows', type === 'eth_signTypedData' && version === 'V2' ?
- this.renderTypedDataV2(data) :
+ h('div.request-signature__rows', type === 'eth_signTypedData' && version === 'V3' ?
+ this.renderTypedDataV3(data) :
rows.map(({ name, value }) => {
if (typeof value === 'boolean') {
value = value.toString()