aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-08-25 01:01:24 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-08-25 05:39:08 +0800
commit8ce4f9c784556e93bde2c58b670bf6efd5d3b7fd (patch)
tree7b5d71c6cc99429c6e485efed15b555e0f72ed14 /packages/contracts/test
parent7351bf0b14e24af78cd67e1c91c18ae0ca078bf1 (diff)
downloaddexon-sol-tools-8ce4f9c784556e93bde2c58b670bf6efd5d3b7fd.tar
dexon-sol-tools-8ce4f9c784556e93bde2c58b670bf6efd5d3b7fd.tar.gz
dexon-sol-tools-8ce4f9c784556e93bde2c58b670bf6efd5d3b7fd.tar.bz2
dexon-sol-tools-8ce4f9c784556e93bde2c58b670bf6efd5d3b7fd.tar.lz
dexon-sol-tools-8ce4f9c784556e93bde2c58b670bf6efd5d3b7fd.tar.xz
dexon-sol-tools-8ce4f9c784556e93bde2c58b670bf6efd5d3b7fd.tar.zst
dexon-sol-tools-8ce4f9c784556e93bde2c58b670bf6efd5d3b7fd.zip
Remove SignatureType.Caller
Diffstat (limited to 'packages/contracts/test')
-rw-r--r--packages/contracts/test/exchange/signature_validator.ts26
1 files changed, 0 insertions, 26 deletions
diff --git a/packages/contracts/test/exchange/signature_validator.ts b/packages/contracts/test/exchange/signature_validator.ts
index 5b64d853c..ac07b0636 100644
--- a/packages/contracts/test/exchange/signature_validator.ts
+++ b/packages/contracts/test/exchange/signature_validator.ts
@@ -281,32 +281,6 @@ describe('MixinSignatureValidator', () => {
expect(isValidSignature).to.be.false();
});
- it('should return true when SignatureType=Caller and signer is caller', async () => {
- const signature = ethUtil.toBuffer(`0x${SignatureType.Caller}`);
- const signatureHex = ethUtil.bufferToHex(signature);
- const orderHashHex = orderHashUtils.getOrderHashHex(signedOrder);
- const isValidSignature = await signatureValidator.publicIsValidSignature.callAsync(
- orderHashHex,
- signerAddress,
- signatureHex,
- { from: signerAddress },
- );
- expect(isValidSignature).to.be.true();
- });
-
- it('should return false when SignatureType=Caller and signer is not caller', async () => {
- const signature = ethUtil.toBuffer(`0x${SignatureType.Caller}`);
- const signatureHex = ethUtil.bufferToHex(signature);
- const orderHashHex = orderHashUtils.getOrderHashHex(signedOrder);
- const isValidSignature = await signatureValidator.publicIsValidSignature.callAsync(
- orderHashHex,
- signerAddress,
- signatureHex,
- { from: notSignerAddress },
- );
- expect(isValidSignature).to.be.false();
- });
-
it('should return true when SignatureType=Wallet and signature is valid', async () => {
// Create EIP712 signature
const orderHashHex = orderHashUtils.getOrderHashHex(signedOrder);