diff options
author | Jacob Evans <jacob@dekz.net> | 2018-05-08 13:31:56 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-05-25 07:00:22 +0800 |
commit | 65676c22f92996feb0e3cb98daa3d8ce7b3854e9 (patch) | |
tree | 640f76ff3186b3360bad2806272b6aa4f5974f2a /packages/contracts/test/exchange | |
parent | bc550c3265cfcb92785d90c075a120d8c90d15f7 (diff) | |
download | dexon-0x-contracts-65676c22f92996feb0e3cb98daa3d8ce7b3854e9.tar.gz dexon-0x-contracts-65676c22f92996feb0e3cb98daa3d8ce7b3854e9.tar.zst dexon-0x-contracts-65676c22f92996feb0e3cb98daa3d8ce7b3854e9.zip |
Update order hash to match latest eip712
Diffstat (limited to 'packages/contracts/test/exchange')
-rw-r--r-- | packages/contracts/test/exchange/libs.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/contracts/test/exchange/libs.ts b/packages/contracts/test/exchange/libs.ts index 5c530a9b1..f4a6d04a3 100644 --- a/packages/contracts/test/exchange/libs.ts +++ b/packages/contracts/test/exchange/libs.ts @@ -56,6 +56,12 @@ describe('Exchange libs', () => { }); describe('LibOrder', () => { + describe('getOrderSchema', () => { + it('should output the correct orderHash', async () => { + const orderSchema = await libs.publicGetOrderSchemaHash.callAsync(); + expect(orderUtils.getOrderSchemaHex()).to.be.equal(orderSchema); + }); + }); describe('getOrderHash', () => { it('should output the correct orderHash', async () => { const orderHashHex = await libs.publicGetOrderHash.callAsync(signedOrder); |