|
|
|
@ -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() |
|
|
|
|