mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +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
|
||||
this.provider.sendAsync(request, function onPayloadHandled (err, response) {
|
||||
if (err) {
|
||||
return logger(err)
|
||||
}
|
||||
logger(null, request, response)
|
||||
try {
|
||||
stream.write(response)
|
||||
} catch (err) {
|
||||
logger(err)
|
||||
logger(err, request, response)
|
||||
if (response) {
|
||||
try {
|
||||
stream.write(response)
|
||||
} catch (err) {
|
||||
logger(err)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user