Skip to content

Commit

Permalink
Merge pull request #320 from s1na/fix/fake-blockchain-err-handling
Browse files Browse the repository at this point in the history
Fix error handling in fakeBlockChain
  • Loading branch information
axic committed Jul 25, 2018
2 parents 914dfd6 + 9cadfa7 commit 847edb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fakeBlockChain.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
} else if (Number.isInteger(blockTag)) {
hash = utils.sha3('0x' + utils.toBuffer(blockTag).toString('hex'))
} else {
cb(new Error('Unknown blockTag type'))
return cb(new Error('Unknown blockTag type'))
}

var block = {
Expand Down

0 comments on commit 847edb5

Please sign in to comment.