fix tests

This commit is contained in:
Matias Alejo Garcia 2015-02-19 18:15:47 -03:00
parent 36ed3682be
commit 733c22c0fa
1 changed files with 5 additions and 1 deletions

View File

@ -32,7 +32,11 @@ WalletUtils.signMessage = function(text, privKey) {
WalletUtils.verifyMessage = function(text, signature, pubKey) {
$.checkArgument(signature, text, pubKey);
$.checkArgument(text, pubKey);
if (!signature)
return false;
var pub = new PublicKey(pubKey);
var hash = WalletUtils.hashMessage(text);