diff options
background + notifications - add origin to message signatures
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/background.js | 2 | ||||
-rw-r--r-- | app/scripts/lib/notifications.js | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js index 4f537b30a..bfd1fc92b 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -153,7 +153,7 @@ function setupProviderConnection(stream, originDomain){ if (payload.method === 'eth_sendTransaction') { payload.params[0].origin = originDomain } else if (payload.method === 'eth_sign') { - payload.params.push(originDomain) + payload.params.push({ origin: originDomain }) } // handle rpc request provider.sendAsync(payload, function onPayloadHandled(err, response){ diff --git a/app/scripts/lib/notifications.js b/app/scripts/lib/notifications.js index 5a7ae6c2b..d011d778b 100644 --- a/app/scripts/lib/notifications.js +++ b/app/scripts/lib/notifications.js @@ -68,6 +68,7 @@ function createTxNotification(opts){ function createMsgNotification(opts){ var message = [ + 'Submitted by '+opts.msgParams.origin, 'to be signed by: '+uiUtils.addressSummary(opts.msgParams.from), 'message:\n'+opts.msgParams.data, ].join('\n') |