Fix braces

This commit is contained in:
Leonid Logvinov 2017-05-25 13:47:04 +02:00
parent b43cc8f52c
commit 00b6401452
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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);