1
0
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:
kumavis 2016-07-07 11:13:14 -07:00 committed by GitHub
commit 768b049696

View File

@ -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)
} }
}) })