diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-11-21 02:09:38 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 08:38:11 +0800 |
commit | fbbca8e2837b8036b8dfd7985c702fd05073daa3 (patch) | |
tree | d7bcfa820209432ae9ca40fbefea9479c5d0c06d /packages/utils/src/abi_encoder/data_type.ts | |
parent | 0f7abcd59bcbad5a74c7984b199158f5c9f03934 (diff) | |
download | dexon-sol-tools-fbbca8e2837b8036b8dfd7985c702fd05073daa3.tar dexon-sol-tools-fbbca8e2837b8036b8dfd7985c702fd05073daa3.tar.gz dexon-sol-tools-fbbca8e2837b8036b8dfd7985c702fd05073daa3.tar.bz2 dexon-sol-tools-fbbca8e2837b8036b8dfd7985c702fd05073daa3.tar.lz dexon-sol-tools-fbbca8e2837b8036b8dfd7985c702fd05073daa3.tar.xz dexon-sol-tools-fbbca8e2837b8036b8dfd7985c702fd05073daa3.tar.zst dexon-sol-tools-fbbca8e2837b8036b8dfd7985c702fd05073daa3.zip |
Ran prettier on utils
Diffstat (limited to 'packages/utils/src/abi_encoder/data_type.ts')
-rw-r--r-- | packages/utils/src/abi_encoder/data_type.ts | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/packages/utils/src/abi_encoder/data_type.ts b/packages/utils/src/abi_encoder/data_type.ts index 926023468..4370cb253 100644 --- a/packages/utils/src/abi_encoder/data_type.ts +++ b/packages/utils/src/abi_encoder/data_type.ts @@ -74,12 +74,7 @@ export abstract class PayloadDataType extends DataType { const signature = this.getSignature(); const parentName = parentBlock === undefined ? '' : parentBlock.getName(); const relocatable = false; - const block = new PayloadCalldataBlock( - name, - signature, - parentName, - encodedValue, - ); + const block = new PayloadCalldataBlock(name, signature, parentName, encodedValue); return block; } @@ -115,13 +110,7 @@ export abstract class DependentDataType extends DataType { const name = this.getDataItem().name; const signature = this.getSignature(); const parentName = parentBlock === undefined ? '' : parentBlock.getName(); - const block = new DependentCalldataBlock( - name, - signature, - parentName, - dependencyBlock, - parentBlock, - ); + const block = new DependentCalldataBlock(name, signature, parentName, dependencyBlock, parentBlock); return block; } @@ -232,7 +221,7 @@ export abstract class MemberDataType extends DataType { const methodBlock: MemberCalldataBlock = new MemberCalldataBlock( this.getDataItem().name, this.getSignature(), - parentName + parentName, ); let members = this.members; @@ -257,7 +246,7 @@ export abstract class MemberDataType extends DataType { const methodBlock: MemberCalldataBlock = new MemberCalldataBlock( this.getDataItem().name, this.getSignature(), - parentName + parentName, ); const memberBlocks: CalldataBlock[] = []; let childMap = _.cloneDeep(this.memberMap); |