|
|
@ -153,7 +153,7 @@ function setupProviderConnection(stream, originDomain){ |
|
|
|
if (payload.method === 'eth_sendTransaction') { |
|
|
|
if (payload.method === 'eth_sendTransaction') { |
|
|
|
payload.params[0].origin = originDomain |
|
|
|
payload.params[0].origin = originDomain |
|
|
|
} else if (payload.method === 'eth_sign') { |
|
|
|
} else if (payload.method === 'eth_sign') { |
|
|
|
payload.params.push(originDomain) |
|
|
|
payload.params.push({ origin: originDomain }) |
|
|
|
} |
|
|
|
} |
|
|
|
// handle rpc request
|
|
|
|
// handle rpc request
|
|
|
|
provider.sendAsync(payload, function onPayloadHandled(err, response){ |
|
|
|
provider.sendAsync(payload, function onPayloadHandled(err, response){ |
|
|
|