diff --git a/packages/web3-core-method/src/index.js b/packages/web3-core-method/src/index.js index e8012bf77c6..d08c4977918 100644 --- a/packages/web3-core-method/src/index.js +++ b/packages/web3-core-method/src/index.js @@ -533,7 +533,14 @@ Method.prototype.buildCall = function() { // If wallet was found, sign tx, and send using sendRawTransaction if (wallet && wallet.privateKey) { - return method.accounts.signTransaction(_.omit(tx, 'from'), wallet.privateKey).then(sendSignedTx); + return method.accounts.signTransaction(_.omit(tx, 'from'), wallet.privateKey) + .then(sendSignedTx) + .catch(function (err) { + if (defer.eventEmitter.emit) { + defer.eventEmitter.emit('error', err); + } + defer.reject(err); + }); } // ETH_SIGN