aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-07-27 05:11:03 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-08-09 05:27:30 +0800
commit6a5965d73bb542634631d7af76c150795d899744 (patch)
treeaba6597779094b9738c0ad94fb2694a18d22cdc2 /packages/order-utils
parent19cda0eb036b6876964d8074aea1295142d25027 (diff)
downloaddexon-sol-tools-6a5965d73bb542634631d7af76c150795d899744.tar
dexon-sol-tools-6a5965d73bb542634631d7af76c150795d899744.tar.gz
dexon-sol-tools-6a5965d73bb542634631d7af76c150795d899744.tar.bz2
dexon-sol-tools-6a5965d73bb542634631d7af76c150795d899744.tar.lz
dexon-sol-tools-6a5965d73bb542634631d7af76c150795d899744.tar.xz
dexon-sol-tools-6a5965d73bb542634631d7af76c150795d899744.tar.zst
dexon-sol-tools-6a5965d73bb542634631d7af76c150795d899744.zip
Add strictArgumentEncodingCheck to BaseContract and use it in contract templates
Diffstat (limited to 'packages/order-utils')
-rw-r--r--packages/order-utils/test/signature_utils_test.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/order-utils/test/signature_utils_test.ts b/packages/order-utils/test/signature_utils_test.ts
index 5714f9671..baae2b414 100644
--- a/packages/order-utils/test/signature_utils_test.ts
+++ b/packages/order-utils/test/signature_utils_test.ts
@@ -22,7 +22,8 @@ describe('Signature utils', () => {
let address = '0x5409ed021d9299bf6814279a6a1411a7e866a631';
it("should return false if the data doesn't pertain to the signature & address", async () => {
- expect(await isValidSignatureAsync(provider, '0x0', ethSignSignature, address)).to.be.false();
+ const bytes32Zeros = '0x0000000000000000000000000000000000000000000000000000000000000000';
+ expect(await isValidSignatureAsync(provider, bytes32Zeros, ethSignSignature, address)).to.be.false();
});
it("should return false if the address doesn't pertain to the signature & data", async () => {
const validUnrelatedAddress = '0x8b0292b11a196601ed2ce54b665cafeca0347d42';