Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions app/hooked-web3-provider.es6
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ var factory = function(Web3) {
}
}

var finishedWithRewrite = () => {
var finishedWithRewrite = (err) => {
if (err) return callback(err);
return super.send(payload, callback);
};

Expand All @@ -35,7 +36,8 @@ var factory = function(Web3) {
// methods to sendRawTransaction, calling out to the transaction_signer to
// get the data for sendRawTransaction.
sendAsync(payload, callback) {
var finishedWithRewrite = () => {
var finishedWithRewrite = (err) => {
if (err) return callback(err);
super.sendAsync(payload, callback);
};

Expand Down