diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2019-01-10 03:18:56 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2019-01-15 02:49:44 +0800 |
commit | 82a44559f6a3d795a6a8b0baa9486633bc884475 (patch) | |
tree | cbc45b36b74dc17f1d06e356d823c0c200041ec8 /packages/utils/src/abi_encoder/evm_data_types/tuple.ts | |
parent | 892be49b98acae61d1892ea89ef3c0b42168d8eb (diff) | |
download | dexon-0x-contracts-82a44559f6a3d795a6a8b0baa9486633bc884475.tar dexon-0x-contracts-82a44559f6a3d795a6a8b0baa9486633bc884475.tar.gz dexon-0x-contracts-82a44559f6a3d795a6a8b0baa9486633bc884475.tar.bz2 dexon-0x-contracts-82a44559f6a3d795a6a8b0baa9486633bc884475.tar.lz dexon-0x-contracts-82a44559f6a3d795a6a8b0baa9486633bc884475.tar.xz dexon-0x-contracts-82a44559f6a3d795a6a8b0baa9486633bc884475.tar.zst dexon-0x-contracts-82a44559f6a3d795a6a8b0baa9486633bc884475.zip |
Style cleanup for Compressed Calldata in Contract Wrappers PR
Diffstat (limited to 'packages/utils/src/abi_encoder/evm_data_types/tuple.ts')
-rw-r--r-- | packages/utils/src/abi_encoder/evm_data_types/tuple.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/utils/src/abi_encoder/evm_data_types/tuple.ts b/packages/utils/src/abi_encoder/evm_data_types/tuple.ts index 2370ecdef..5000c85e8 100644 --- a/packages/utils/src/abi_encoder/evm_data_types/tuple.ts +++ b/packages/utils/src/abi_encoder/evm_data_types/tuple.ts @@ -20,15 +20,15 @@ export class TupleDataType extends AbstractSetDataType { return this._computeSignatureOfMembers(false); } - public getSignature(detailed?: boolean): string { - if (_.isEmpty(this.getDataItem().name) || !detailed) { + public getSignature(isDetailed?: boolean): string { + if (_.isEmpty(this.getDataItem().name) || !isDetailed) { return this.getSignatureType(); } const name = this.getDataItem().name; const lastIndexOfScopeDelimiter = name.lastIndexOf('.'); const isScopedName = !_.isUndefined(lastIndexOfScopeDelimiter) && lastIndexOfScopeDelimiter > 0; const shortName = isScopedName ? name.substr((lastIndexOfScopeDelimiter as number) + 1) : name; - const detailedSignature = `${shortName} ${this._computeSignatureOfMembers(detailed)}`; + const detailedSignature = `${shortName} ${this._computeSignatureOfMembers(isDetailed)}`; return detailedSignature; } } |