diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 05:47:01 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 08:38:11 +0800 |
commit | 2da7cadefa877ff824da8fbaecd59dbff5028728 (patch) | |
tree | 18f74e4708b9f30cd9b8ca2774fdb8721dee39fe /packages/utils/src/abi_encoder/abstract_data_types/types/blob.ts | |
parent | b8ea322541e291b84f261bffcc77baf85dae08c1 (diff) | |
download | dexon-sol-tools-2da7cadefa877ff824da8fbaecd59dbff5028728.tar dexon-sol-tools-2da7cadefa877ff824da8fbaecd59dbff5028728.tar.gz dexon-sol-tools-2da7cadefa877ff824da8fbaecd59dbff5028728.tar.bz2 dexon-sol-tools-2da7cadefa877ff824da8fbaecd59dbff5028728.tar.lz dexon-sol-tools-2da7cadefa877ff824da8fbaecd59dbff5028728.tar.xz dexon-sol-tools-2da7cadefa877ff824da8fbaecd59dbff5028728.tar.zst dexon-sol-tools-2da7cadefa877ff824da8fbaecd59dbff5028728.zip |
Explicit imports for calldata
Diffstat (limited to 'packages/utils/src/abi_encoder/abstract_data_types/types/blob.ts')
-rw-r--r-- | packages/utils/src/abi_encoder/abstract_data_types/types/blob.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/utils/src/abi_encoder/abstract_data_types/types/blob.ts b/packages/utils/src/abi_encoder/abstract_data_types/types/blob.ts index cd2119673..a091e55b9 100644 --- a/packages/utils/src/abi_encoder/abstract_data_types/types/blob.ts +++ b/packages/utils/src/abi_encoder/abstract_data_types/types/blob.ts @@ -1,7 +1,9 @@ import { DataItem } from 'ethereum-types'; import * as _ from 'lodash'; -import { CalldataBlock, CalldataBlocks, RawCalldata } from '../../calldata'; +import { BlobCalldataBlock } from '../../calldata/blocks/blob'; +import { CalldataBlock } from '../../calldata/calldata_block'; +import { RawCalldata } from '../../calldata/raw_calldata'; import { DecodingRules } from '../../utils/rules'; import { DataType } from '../data_type'; @@ -15,12 +17,12 @@ export abstract class AbstractBlobDataType extends DataType { this._sizeKnownAtCompileTime = sizeKnownAtCompileTime; } - public generateCalldataBlock(value: any, parentBlock?: CalldataBlock): CalldataBlocks.Blob { + public generateCalldataBlock(value: any, parentBlock?: CalldataBlock): BlobCalldataBlock { const encodedValue = this.encodeValue(value); const name = this.getDataItem().name; const signature = this.getSignature(); const parentName = _.isUndefined(parentBlock) ? '' : parentBlock.getName(); - const block = new CalldataBlocks.Blob(name, signature, parentName, encodedValue); + const block = new BlobCalldataBlock(name, signature, parentName, encodedValue); return block; } |