aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-05-25 07:30:46 +0800
committerGitHub <noreply@github.com>2018-05-25 07:30:46 +0800
commit895a9093aa5f204f9f7ad0fedb2934a8b6c40b17 (patch)
tree9f1e56a98683fbee69a6b5fc051dc81064643734 /packages/contracts/test
parentc4a7574f7bd3939eac9417241144197bbb22edb1 (diff)
parent35121f0b780102f0235ab3d5f26441cbb3f090e9 (diff)
downloaddexon-sol-tools-895a9093aa5f204f9f7ad0fedb2934a8b6c40b17.tar
dexon-sol-tools-895a9093aa5f204f9f7ad0fedb2934a8b6c40b17.tar.gz
dexon-sol-tools-895a9093aa5f204f9f7ad0fedb2934a8b6c40b17.tar.bz2
dexon-sol-tools-895a9093aa5f204f9f7ad0fedb2934a8b6c40b17.tar.lz
dexon-sol-tools-895a9093aa5f204f9f7ad0fedb2934a8b6c40b17.tar.xz
dexon-sol-tools-895a9093aa5f204f9f7ad0fedb2934a8b6c40b17.tar.zst
dexon-sol-tools-895a9093aa5f204f9f7ad0fedb2934a8b6c40b17.zip
Merge pull request #575 from 0xProject/feature/contracts/eip712-order-hash
Update order hash to match latest eip712
Diffstat (limited to 'packages/contracts/test')
-rw-r--r--packages/contracts/test/exchange/libs.ts14
1 files changed, 13 insertions, 1 deletions
diff --git a/packages/contracts/test/exchange/libs.ts b/packages/contracts/test/exchange/libs.ts
index b704d5914..bbca54274 100644
--- a/packages/contracts/test/exchange/libs.ts
+++ b/packages/contracts/test/exchange/libs.ts
@@ -56,8 +56,20 @@ describe('Exchange libs', () => {
});
describe('LibOrder', () => {
+ describe('getOrderSchema', () => {
+ it('should output the correct order schema hash', async () => {
+ const orderSchema = await libs.getOrderSchemaHash.callAsync();
+ expect(orderUtils.getOrderSchemaHex()).to.be.equal(orderSchema);
+ });
+ });
+ describe('getDomainSeparatorSchema', () => {
+ it('should output the correct domain separator schema hash', async () => {
+ const domainSeparatorSchema = await libs.getDomainSeparatorSchemaHash.callAsync();
+ expect(orderUtils.getDomainSeparatorSchemaHex()).to.be.equal(domainSeparatorSchema);
+ });
+ });
describe('getOrderHash', () => {
- it('should output the correct orderHash', async () => {
+ it('should output the correct order hash', async () => {
const orderHashHex = await libs.publicGetOrderHash.callAsync(signedOrder);
expect(orderUtils.getOrderHashHex(signedOrder)).to.be.equal(orderHashHex);
});