Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Commit

Permalink
Makes eslint happy with deleting unused variable in test
Browse files Browse the repository at this point in the history
  • Loading branch information
toschdev committed Apr 21, 2017
1 parent c6d7fc3 commit 06b65b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/transactions/crypto/sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function verifyMessageWithPublicKey (signedMessage, publicKey) {

//give appropriate error messages from crypto_sign_open
var openSignature = naclInstance.crypto_sign_open(signedMessageBytes, publicKeyBytes);

if(openSignature) {
// Returns original message
return naclInstance.decode_utf8(openSignature);
Expand Down
1 change: 0 additions & 1 deletion test/transactions/crypto/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ describe('crypto/index.js', function () {
it('should detect invalid publicKeys', function () {

var invalidPublicKey = keypair.publicKey + 'ERROR';
var invalidSignedMessage = newcrypto.signMessageWithSecret(message, secret);
var invalidVerifyMessage = newcrypto.verifyMessageWithPublicKey(signedMessage, invalidPublicKey);

(invalidVerifyMessage.message).should.be.equal('Invalid publicKey, expected 32-byte publicKey');
Expand Down

0 comments on commit 06b65b4

Please sign in to comment.