diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-10-02 21:29:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-02 21:29:49 +0800 |
commit | f1ecb8c5cb28a0a7ca6f7ad2ff11194091df62a4 (patch) | |
tree | 33252be8be47a0b9da43b9ad5ead30baa992e5f3 /packages/web3-wrapper | |
parent | 9ad4a135d23f485b705d3d9fb3f93be6c958c6b9 (diff) | |
parent | a4153144dbd2a46d51069e57ba7c1402e5867154 (diff) | |
download | dexon-sol-tools-f1ecb8c5cb28a0a7ca6f7ad2ff11194091df62a4.tar dexon-sol-tools-f1ecb8c5cb28a0a7ca6f7ad2ff11194091df62a4.tar.gz dexon-sol-tools-f1ecb8c5cb28a0a7ca6f7ad2ff11194091df62a4.tar.bz2 dexon-sol-tools-f1ecb8c5cb28a0a7ca6f7ad2ff11194091df62a4.tar.lz dexon-sol-tools-f1ecb8c5cb28a0a7ca6f7ad2ff11194091df62a4.tar.xz dexon-sol-tools-f1ecb8c5cb28a0a7ca6f7ad2ff11194091df62a4.tar.zst dexon-sol-tools-f1ecb8c5cb28a0a7ca6f7ad2ff11194091df62a4.zip |
Merge pull request #1104 from 0xProject/feature/bundlesize
Bundle size reporting
Diffstat (limited to 'packages/web3-wrapper')
-rw-r--r-- | packages/web3-wrapper/package.json | 1 | ||||
-rw-r--r-- | packages/web3-wrapper/src/utils.ts | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/packages/web3-wrapper/package.json b/packages/web3-wrapper/package.json index 32e2b64cc..5b5c0ec5b 100644 --- a/packages/web3-wrapper/package.json +++ b/packages/web3-wrapper/package.json @@ -9,6 +9,7 @@ "types": "lib/src/index.d.ts", "scripts": { "build": "tsc -b", + "build:ci": "yarn build", "clean": "shx rm -rf lib generated_docs", "lint": "tslint --project .", "test": "yarn run_mocha", diff --git a/packages/web3-wrapper/src/utils.ts b/packages/web3-wrapper/src/utils.ts index 01605dc9a..0b568aac5 100644 --- a/packages/web3-wrapper/src/utils.ts +++ b/packages/web3-wrapper/src/utils.ts @@ -37,7 +37,7 @@ export const utils = { const hexBase = 16; const valueHex = valueBigNumber.toString(hexBase); - return valueBigNumber.lessThan(0) ? '-0x' + valueHex.substr(1) : '0x' + valueHex; + return valueBigNumber.lessThan(0) ? `-0x${valueHex.substr(1)}` : `0x${valueHex}`; }, numberToHex(value: number): string { if (!isFinite(value) && !utils.isHexStrict(value)) { @@ -48,7 +48,7 @@ export const utils = { const hexBase = 16; const result = valueBigNumber.toString(hexBase); - return valueBigNumber.lt(0) ? '-0x' + result.substr(1) : '0x' + result; + return valueBigNumber.lt(0) ? `-0x${result.substr(1)}` : `0x${result}`; }, isHexStrict(hex: string | number): boolean { return ( |