|
|
@ -39,8 +39,6 @@ function MetamaskInpageProvider (connectionStream) { |
|
|
|
self.idMap = {} |
|
|
|
self.idMap = {} |
|
|
|
// handle sendAsync requests via asyncProvider
|
|
|
|
// handle sendAsync requests via asyncProvider
|
|
|
|
self.sendAsync = function (payload, cb) { |
|
|
|
self.sendAsync = function (payload, cb) { |
|
|
|
console.trace('sending async ' + payload.method) |
|
|
|
|
|
|
|
console.dir(payload) |
|
|
|
|
|
|
|
// rewrite request ids
|
|
|
|
// rewrite request ids
|
|
|
|
var request = eachJsonMessage(payload, (message) => { |
|
|
|
var request = eachJsonMessage(payload, (message) => { |
|
|
|
var newId = createRandomId() |
|
|
|
var newId = createRandomId() |
|
|
|