Skip to content

Commit

Permalink
Update to latest ethereumjs-util + use BN instead of ethereumjs-util …
Browse files Browse the repository at this point in the history
…to convert to number
  • Loading branch information
jchavarri committed Jan 12, 2018
1 parent bf1fd79 commit 4becb15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/precompiled/01-ecrecover.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = function (opts) {

var publicKey
try {
publicKey = utils.ecrecover(msgHash, utils.bufferToInt(v), r, s)
publicKey = utils.ecrecover(msgHash, new BN(v).toNumber(), r, s)
} catch (e) {
return results
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"ethereum-common": "0.2.0",
"ethereumjs-account": "^2.0.3",
"ethereumjs-block": "~1.7.0",
"ethereumjs-util": "^5.1.2",
"ethereumjs-util": "^5.1.3",
"fake-merkle-patricia-tree": "^1.0.1",
"functional-red-black-tree": "^1.0.1",
"merkle-patricia-tree": "^2.1.2",
Expand Down

0 comments on commit 4becb15

Please sign in to comment.