Make orderHashHex a getter instead of a property

This commit is contained in:
Leonid Logvinov
2018-02-07 11:59:40 +01:00
parent 12d62e1157
commit 4b6324050d
5 changed files with 41 additions and 32 deletions

View File

@@ -71,7 +71,7 @@ describe('Exchange', () => {
describe('getOrderHash', () => {
it('should output the correct orderHash', async () => {
const orderHashHex = await exchangeWrapper.getOrderHashAsync(order);
expect(order.params.orderHashHex).to.be.equal(orderHashHex);
expect(order.getOrderHashHex()).to.be.equal(orderHashHex);
});
});