diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-08-09 09:28:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-09 09:28:15 +0800 |
commit | 53713188fee57391040c24cc627fdc5ab8982d2e (patch) | |
tree | 8bfcf59197506af235f772cb8fc78f6315932c4f /packages/order-utils/test | |
parent | 03fb73d1d2017b41551f47552a5ca06f0dfb0f08 (diff) | |
parent | c4c37cafa0d8a77bfdc01b1cc111ba0101e86c8b (diff) | |
download | dexon-sol-tools-53713188fee57391040c24cc627fdc5ab8982d2e.tar dexon-sol-tools-53713188fee57391040c24cc627fdc5ab8982d2e.tar.gz dexon-sol-tools-53713188fee57391040c24cc627fdc5ab8982d2e.tar.bz2 dexon-sol-tools-53713188fee57391040c24cc627fdc5ab8982d2e.tar.lz dexon-sol-tools-53713188fee57391040c24cc627fdc5ab8982d2e.tar.xz dexon-sol-tools-53713188fee57391040c24cc627fdc5ab8982d2e.tar.zst dexon-sol-tools-53713188fee57391040c24cc627fdc5ab8982d2e.zip |
Merge pull request #915 from 0xProject/feature/encode-decode-checks
Add strictArgumentEncodingCheck to BaseContract and use it in contract templates
Diffstat (limited to 'packages/order-utils/test')
-rw-r--r-- | packages/order-utils/test/signature_utils_test.ts | 3 |
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'; |