diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-11-28 05:35:39 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 08:38:11 +0800 |
commit | ffb8b0a619be3b8fb30a6acc99f590a6b40d49e1 (patch) | |
tree | 3352f0c5617f6b49bd17d0e33cc2e64973a63a38 /packages/utils/src/abi_encoder/abstract_data_types | |
parent | 1f693ea12142bc761f4067871d92e7d2662cf256 (diff) | |
download | dexon-0x-contracts-ffb8b0a619be3b8fb30a6acc99f590a6b40d49e1.tar dexon-0x-contracts-ffb8b0a619be3b8fb30a6acc99f590a6b40d49e1.tar.gz dexon-0x-contracts-ffb8b0a619be3b8fb30a6acc99f590a6b40d49e1.tar.bz2 dexon-0x-contracts-ffb8b0a619be3b8fb30a6acc99f590a6b40d49e1.tar.lz dexon-0x-contracts-ffb8b0a619be3b8fb30a6acc99f590a6b40d49e1.tar.xz dexon-0x-contracts-ffb8b0a619be3b8fb30a6acc99f590a6b40d49e1.tar.zst dexon-0x-contracts-ffb8b0a619be3b8fb30a6acc99f590a6b40d49e1.zip |
Changed remaining instances of implicit `bool` casts to explicit lodash calls
Diffstat (limited to 'packages/utils/src/abi_encoder/abstract_data_types')
-rw-r--r-- | packages/utils/src/abi_encoder/abstract_data_types/types/pointer.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/utils/src/abi_encoder/abstract_data_types/types/pointer.ts b/packages/utils/src/abi_encoder/abstract_data_types/types/pointer.ts index 46e60979a..dc9de8a3d 100644 --- a/packages/utils/src/abi_encoder/abstract_data_types/types/pointer.ts +++ b/packages/utils/src/abi_encoder/abstract_data_types/types/pointer.ts @@ -21,7 +21,7 @@ export abstract class Pointer extends DataType { } public generateCalldataBlock(value: any, parentBlock?: CalldataBlock): CalldataBlocks.Pointer { - if (!parentBlock) { + if (_.isUndefined(parentBlock)) { throw new Error(`DependentDataType requires a parent block to generate its block`); } const destinationBlock = this._destination.generateCalldataBlock(value, parentBlock); |