Merge pull request #221 from MetaMask/i218

background + notifications - add origin to message signatures
feature/default_network_editable
kumavis 9 years ago
commit 2451ddbbb6
  1. 2
      app/scripts/background.js
  2. 1
      app/scripts/lib/notifications.js
  3. 2
      package.json

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

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

@ -62,7 +62,7 @@
"through2": "^2.0.1",
"vreme": "^3.0.2",
"web3": "ethereum/web3.js#0.16.0",
"web3-provider-engine": "^7.6.5",
"web3-provider-engine": "^7.7.0",
"web3-stream-provider": "^2.0.1",
"xtend": "^4.0.1"
},

Loading…
Cancel
Save