aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-05-24 08:27:49 +0800
committerFabio Berger <me@fabioberger.com>2018-05-25 07:00:22 +0800
commit3cc8af819c9f62f42e7cb3d03f896b35cfc10d05 (patch)
treea03f912c39990d7925390d02cdef73b8ef1b3ea9 /packages/contracts/test
parentfcf4a958c3daa4dd7911de48001a8e235c9eb5ac (diff)
downloaddexon-sol-tools-3cc8af819c9f62f42e7cb3d03f896b35cfc10d05.tar
dexon-sol-tools-3cc8af819c9f62f42e7cb3d03f896b35cfc10d05.tar.gz
dexon-sol-tools-3cc8af819c9f62f42e7cb3d03f896b35cfc10d05.tar.bz2
dexon-sol-tools-3cc8af819c9f62f42e7cb3d03f896b35cfc10d05.tar.lz
dexon-sol-tools-3cc8af819c9f62f42e7cb3d03f896b35cfc10d05.tar.xz
dexon-sol-tools-3cc8af819c9f62f42e7cb3d03f896b35cfc10d05.tar.zst
dexon-sol-tools-3cc8af819c9f62f42e7cb3d03f896b35cfc10d05.zip
Use domain separator for exchange address
Diffstat (limited to 'packages/contracts/test')
-rw-r--r--packages/contracts/test/exchange/libs.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/contracts/test/exchange/libs.ts b/packages/contracts/test/exchange/libs.ts
index e48e7cc33..ad971e08a 100644
--- a/packages/contracts/test/exchange/libs.ts
+++ b/packages/contracts/test/exchange/libs.ts
@@ -57,13 +57,19 @@ describe('Exchange libs', () => {
describe('LibOrder', () => {
describe('getOrderSchema', () => {
- it('should output the correct orderHash', async () => {
+ 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);
});