Skip to content

Commit

Permalink
testing error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
frozeman committed Nov 14, 2017
1 parent 4eeda3c commit 44fee04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/web3-core-method/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ Method.prototype._confirmTransaction = function (defer, result, payload) {
timeoutCount++;

if (timeoutCount - 1 >= TIMEOUTBLOCK) {
console.error(result, payload);
sub.unsubscribe();
promiseResolved = true;
return utils._fireError(new Error('Transaction was not mined within 50 blocks, please make sure your transaction was properly send. Be aware that it might still be mined!'), defer.eventEmitter, defer.reject);
Expand Down
2 changes: 1 addition & 1 deletion test/eth.sendTransaction.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
commvar testMethod = require('./helpers/test.method.js');
var testMethod = require('./helpers/test.method.js');
var chai = require('chai');
var assert = chai.assert;
var FakeHttpProvider = require('./helpers/FakeHttpProvider');
Expand Down

0 comments on commit 44fee04

Please sign in to comment.