diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 05:22:18 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 08:38:11 +0800 |
commit | a172ab158e2eaca8256ef881c3f2d4098987ec8a (patch) | |
tree | 4187301296e4f7fb37cb6907c5b857a3aa86fa1b /packages/utils/src/abi_encoder/evm_data_types/method.ts | |
parent | 5c13353fb2512411c0f2c8cba9395235188f5df8 (diff) | |
download | dexon-sol-tools-a172ab158e2eaca8256ef881c3f2d4098987ec8a.tar dexon-sol-tools-a172ab158e2eaca8256ef881c3f2d4098987ec8a.tar.gz dexon-sol-tools-a172ab158e2eaca8256ef881c3f2d4098987ec8a.tar.bz2 dexon-sol-tools-a172ab158e2eaca8256ef881c3f2d4098987ec8a.tar.lz dexon-sol-tools-a172ab158e2eaca8256ef881c3f2d4098987ec8a.tar.xz dexon-sol-tools-a172ab158e2eaca8256ef881c3f2d4098987ec8a.tar.zst dexon-sol-tools-a172ab158e2eaca8256ef881c3f2d4098987ec8a.zip |
Explicit imports for EVM Data Types
Diffstat (limited to 'packages/utils/src/abi_encoder/evm_data_types/method.ts')
-rw-r--r-- | packages/utils/src/abi_encoder/evm_data_types/method.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/utils/src/abi_encoder/evm_data_types/method.ts b/packages/utils/src/abi_encoder/evm_data_types/method.ts index 7256a93d9..de8809edf 100644 --- a/packages/utils/src/abi_encoder/evm_data_types/method.ts +++ b/packages/utils/src/abi_encoder/evm_data_types/method.ts @@ -6,9 +6,9 @@ import { AbstractDataTypes, DataType, DataTypeFactory } from '../abstract_data_t import { constants } from '../utils/constants'; import { DecodingRules, EncodingRules } from '../utils/rules'; -import { Tuple } from './tuple'; +import { TupleDataType } from './tuple'; -export class Method extends AbstractDataTypes.Set { +export class MethodDataType extends AbstractDataTypes.Set { private readonly _methodSignature: string; private readonly _methodSelector: string; private readonly _returnDataType: DataType; @@ -19,7 +19,7 @@ export class Method extends AbstractDataTypes.Set { this._methodSignature = this._computeSignature(); this._methodSelector = this._computeSelector(); const returnDataItem: DataItem = { type: 'tuple', name: abi.name, components: abi.outputs }; - this._returnDataType = new Tuple(returnDataItem, this.getFactory()); + this._returnDataType = new TupleDataType(returnDataItem, this.getFactory()); } public encode(value: any, rules?: EncodingRules): string { |