@0x/contracts-exchange: Fix comments in test/signature_validator.ts

This commit is contained in:
Lawrence Forman
2019-06-25 12:09:05 -04:00
committed by Amir Bandeali
parent ddbe2acbf5
commit 5dfb65b084

View File

@@ -198,7 +198,7 @@ describe('MixinSignatureValidator', () => {
]);
const signatureHex = ethUtil.bufferToHex(signature);
// Validate signature.
// This will fail because `signerAddress` signed the message, but we're passing in `notSignerAddress`
// This will fail because the signature is random, not signed by `signerAddress`.
const isValidSignature = await validateCallAsync(signedOrder, notSignerAddress, signatureHex);
expect(isValidSignature).to.be.false();
});
@@ -230,7 +230,7 @@ describe('MixinSignatureValidator', () => {
]);
const signatureHex = ethUtil.bufferToHex(signature);
// Validate signature.
// This will fail because `signerAddress` signed the message, but we're passing in `notSignerAddress`
// This will fail because the signature is random, not signed by `signerAddress`.
const isValidSignature = await validateCallAsync(signedOrder, signerAddress, signatureHex);
expect(isValidSignature).to.be.false();
});