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/tuple.ts | |
parent | 5c13353fb2512411c0f2c8cba9395235188f5df8 (diff) | |
download | dexon-0x-contracts-a172ab158e2eaca8256ef881c3f2d4098987ec8a.tar dexon-0x-contracts-a172ab158e2eaca8256ef881c3f2d4098987ec8a.tar.gz dexon-0x-contracts-a172ab158e2eaca8256ef881c3f2d4098987ec8a.tar.bz2 dexon-0x-contracts-a172ab158e2eaca8256ef881c3f2d4098987ec8a.tar.lz dexon-0x-contracts-a172ab158e2eaca8256ef881c3f2d4098987ec8a.tar.xz dexon-0x-contracts-a172ab158e2eaca8256ef881c3f2d4098987ec8a.tar.zst dexon-0x-contracts-a172ab158e2eaca8256ef881c3f2d4098987ec8a.zip |
Explicit imports for EVM Data Types
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 | 4 |
1 files changed, 2 insertions, 2 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 40859f62e..5ba875b9e 100644 --- a/packages/utils/src/abi_encoder/evm_data_types/tuple.ts +++ b/packages/utils/src/abi_encoder/evm_data_types/tuple.ts @@ -2,7 +2,7 @@ import { DataItem, SolidityTypes } from 'ethereum-types'; import { AbstractDataTypes, DataTypeFactory } from '../abstract_data_types'; -export class Tuple extends AbstractDataTypes.Set { +export class TupleDataType extends AbstractDataTypes.Set { private readonly _signature: string; public static matchType(type: string): boolean { @@ -11,7 +11,7 @@ export class Tuple extends AbstractDataTypes.Set { public constructor(dataItem: DataItem, dataTypeFactory: DataTypeFactory) { super(dataItem, dataTypeFactory); - if (!Tuple.matchType(dataItem.type)) { + if (!TupleDataType.matchType(dataItem.type)) { throw new Error(`Tried to instantiate Tuple with bad input: ${dataItem}`); } this._signature = this._computeSignatureOfMembers(); |