diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-11-28 05:28:17 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 08:38:11 +0800 |
commit | 3f545da9f86856b54cd226c29174ac1ae085e35b (patch) | |
tree | a75ecb84ec499f2e96fb4bb2d5613e5cb38bc3ba /packages/utils/src/abi_encoder/evm_data_types/bool.ts | |
parent | f31d4ddffd8dd97f2b2dc226f4f132d1c3192c76 (diff) | |
download | dexon-sol-tools-3f545da9f86856b54cd226c29174ac1ae085e35b.tar dexon-sol-tools-3f545da9f86856b54cd226c29174ac1ae085e35b.tar.gz dexon-sol-tools-3f545da9f86856b54cd226c29174ac1ae085e35b.tar.bz2 dexon-sol-tools-3f545da9f86856b54cd226c29174ac1ae085e35b.tar.lz dexon-sol-tools-3f545da9f86856b54cd226c29174ac1ae085e35b.tar.xz dexon-sol-tools-3f545da9f86856b54cd226c29174ac1ae085e35b.tar.zst dexon-sol-tools-3f545da9f86856b54cd226c29174ac1ae085e35b.zip |
Switched implicit conversions to explicit lodash calls
Diffstat (limited to 'packages/utils/src/abi_encoder/evm_data_types/bool.ts')
-rw-r--r-- | packages/utils/src/abi_encoder/evm_data_types/bool.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/utils/src/abi_encoder/evm_data_types/bool.ts b/packages/utils/src/abi_encoder/evm_data_types/bool.ts index 031acc88a..fa115bb87 100644 --- a/packages/utils/src/abi_encoder/evm_data_types/bool.ts +++ b/packages/utils/src/abi_encoder/evm_data_types/bool.ts @@ -39,7 +39,7 @@ export class Bool extends AbstractDataTypes.Blob { throw new Error(`Failed to decode boolean. Expected 0x0 or 0x1, got ${valueHex}`); } /* tslint:disable boolean-naming */ - const value: boolean = valueNumber.equals(0) ? false : true; + const value: boolean = !valueNumber.equals(0); /* tslint:enable boolean-naming */ return value; } |