diff options
author | Dan Finlay <flyswatter@users.noreply.github.com> | 2017-09-07 01:33:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-07 01:33:43 +0800 |
commit | 88556dce74d858c6b65881e2dbca544fa3b873ed (patch) | |
tree | 057e692ee7debdccbef7af8b370cd7c4cbf0c825 | |
parent | 32c799a1359a0d558fec257c5e1bbd0e31d086f6 (diff) | |
parent | ea7e46ed3843b2d38fe04efa232dc8f5cddb6186 (diff) | |
download | tangerine-wallet-browser-88556dce74d858c6b65881e2dbca544fa3b873ed.tar tangerine-wallet-browser-88556dce74d858c6b65881e2dbca544fa3b873ed.tar.gz tangerine-wallet-browser-88556dce74d858c6b65881e2dbca544fa3b873ed.tar.bz2 tangerine-wallet-browser-88556dce74d858c6b65881e2dbca544fa3b873ed.tar.lz tangerine-wallet-browser-88556dce74d858c6b65881e2dbca544fa3b873ed.tar.xz tangerine-wallet-browser-88556dce74d858c6b65881e2dbca544fa3b873ed.tar.zst tangerine-wallet-browser-88556dce74d858c6b65881e2dbca544fa3b873ed.zip |
Merge pull request #2023 from MetaMask/web3-1.0-fix
inpage - bug fix
-rw-r--r-- | app/scripts/lib/inpage-provider.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/scripts/lib/inpage-provider.js b/app/scripts/lib/inpage-provider.js index 7c74a62d3..c63af06dc 100644 --- a/app/scripts/lib/inpage-provider.js +++ b/app/scripts/lib/inpage-provider.js @@ -43,8 +43,9 @@ function MetamaskInpageProvider (connectionStream) { // handle sendAsync requests via asyncProvider self.sendAsync = function (payload, cb) { // rewrite request ids - var request = eachJsonMessage(payload, (message) => { - var newId = createRandomId() + var request = eachJsonMessage(payload, (_message) => { + const message = Object.assign({}, _message) + const newId = createRandomId() self.idMap[newId] = message.id message.id = newId return message |