mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +01:00
Merge pull request #408 from MetaMask/FixNoDeclineCallback
Fix bug where rejected tx would not call back
This commit is contained in:
commit
768b049696
@ -77,14 +77,13 @@ module.exports = class MetamaskController {
|
|||||||
|
|
||||||
// handle rpc request
|
// handle rpc request
|
||||||
this.provider.sendAsync(request, function onPayloadHandled (err, response) {
|
this.provider.sendAsync(request, function onPayloadHandled (err, response) {
|
||||||
if (err) {
|
logger(err, request, response)
|
||||||
return logger(err)
|
if (response) {
|
||||||
}
|
try {
|
||||||
logger(null, request, response)
|
stream.write(response)
|
||||||
try {
|
} catch (err) {
|
||||||
stream.write(response)
|
logger(err)
|
||||||
} catch (err) {
|
}
|
||||||
logger(err)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user