aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2016-05-26 09:03:16 +0800
committerkumavis <aaron@kumavis.me>2016-05-26 09:03:16 +0800
commit092c191c1fac0349b7180f0f035e4b04325e0962 (patch)
tree368101d204884fd6690e4b7171c63ae21577f856 /app
parent9f8267225221cd025591852bbf0eb719b6dde9ac (diff)
downloadtangerine-wallet-browser-092c191c1fac0349b7180f0f035e4b04325e0962.tar
tangerine-wallet-browser-092c191c1fac0349b7180f0f035e4b04325e0962.tar.gz
tangerine-wallet-browser-092c191c1fac0349b7180f0f035e4b04325e0962.tar.bz2
tangerine-wallet-browser-092c191c1fac0349b7180f0f035e4b04325e0962.tar.lz
tangerine-wallet-browser-092c191c1fac0349b7180f0f035e4b04325e0962.tar.xz
tangerine-wallet-browser-092c191c1fac0349b7180f0f035e4b04325e0962.tar.zst
tangerine-wallet-browser-092c191c1fac0349b7180f0f035e4b04325e0962.zip
background + notifications - add origin to message signatures
Diffstat (limited to 'app')
-rw-r--r--app/scripts/background.js2
-rw-r--r--app/scripts/lib/notifications.js1
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')