diff options
-rw-r--r-- | src/ts/0x.js.ts | 1 | ||||
-rw-r--r-- | test/0x.js.ts | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/ts/0x.js.ts b/src/ts/0x.js.ts index cc2adca33..5e500b481 100644 --- a/src/ts/0x.js.ts +++ b/src/ts/0x.js.ts @@ -56,6 +56,7 @@ export class ZeroEx { assert.isString('orderHash', orderHash); const isValid = /^0x[0-9A-F]{66}$/i.test(orderHash); return isValid; + } /* * A unit amount is defined as the amount of a token above the specified decimal places (integer part). * E.g: If a currency has 18 decimal places, 1e18 or one quintillion of the currency is equivalent diff --git a/test/0x.js.ts b/test/0x.js.ts index 01a5554ff..a913fd6b5 100644 --- a/test/0x.js.ts +++ b/test/0x.js.ts @@ -99,6 +99,8 @@ describe('ZeroEx library', () => { it('returns true if order hash is correct', () => { const isValid = ZeroEx.isValidOrderHash('0x' + Array(65).join('0')); expect(isValid).to.be.true; + }); + }); describe('#toUnitAmount', () => { it('Should return the expected unit amount for the decimals passed in', () => { const baseUnitAmount = new BigNumber(1000000000); |