aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-05-25 19:47:04 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-05-25 19:47:04 +0800
commit00b64014525b4aabd82a61c1330a3f126554016a (patch)
tree3e94ba0c1195bb18381591b897a0bb0a195b67a8
parentb43cc8f52cd726cd919d2db6c9e63b4b7af5dcea (diff)
downloaddexon-sol-tools-00b64014525b4aabd82a61c1330a3f126554016a.tar
dexon-sol-tools-00b64014525b4aabd82a61c1330a3f126554016a.tar.gz
dexon-sol-tools-00b64014525b4aabd82a61c1330a3f126554016a.tar.bz2
dexon-sol-tools-00b64014525b4aabd82a61c1330a3f126554016a.tar.lz
dexon-sol-tools-00b64014525b4aabd82a61c1330a3f126554016a.tar.xz
dexon-sol-tools-00b64014525b4aabd82a61c1330a3f126554016a.tar.zst
dexon-sol-tools-00b64014525b4aabd82a61c1330a3f126554016a.zip
Fix braces
-rw-r--r--src/ts/0x.js.ts1
-rw-r--r--test/0x.js.ts2
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);