Fix braces
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user