diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-11-26 09:04:50 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 08:38:11 +0800 |
commit | 58a2dfbc4d191ea21e6a749371e586dcff3b3239 (patch) | |
tree | 848b6be9277a10144d8e2c1fe5350abfb48b3e5a /packages/utils/src/abi_encoder/evm_data_types/tuple.ts | |
parent | 173fc1dcefa266704dd80de6335c03b73b7d8702 (diff) | |
download | dexon-0x-contracts-58a2dfbc4d191ea21e6a749371e586dcff3b3239.tar dexon-0x-contracts-58a2dfbc4d191ea21e6a749371e586dcff3b3239.tar.gz dexon-0x-contracts-58a2dfbc4d191ea21e6a749371e586dcff3b3239.tar.bz2 dexon-0x-contracts-58a2dfbc4d191ea21e6a749371e586dcff3b3239.tar.lz dexon-0x-contracts-58a2dfbc4d191ea21e6a749371e586dcff3b3239.tar.xz dexon-0x-contracts-58a2dfbc4d191ea21e6a749371e586dcff3b3239.tar.zst dexon-0x-contracts-58a2dfbc4d191ea21e6a749371e586dcff3b3239.zip |
Final rounds on 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 | 8 |
1 files changed, 4 insertions, 4 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 4a90e375a..89dd6604d 100644 --- a/packages/utils/src/abi_encoder/evm_data_types/tuple.ts +++ b/packages/utils/src/abi_encoder/evm_data_types/tuple.ts @@ -3,8 +3,8 @@ import { DataItem } from 'ethereum-types'; import { DataTypeFactory, MemberDataType } from '../abstract_data_types'; export class Tuple extends MemberDataType { - private readonly _tupleSignature: string; - + private readonly _signature: string; + public static matchType(type: string): boolean { return type === 'tuple'; } @@ -14,10 +14,10 @@ export class Tuple extends MemberDataType { if (!Tuple.matchType(dataItem.type)) { throw new Error(`Tried to instantiate Tuple with bad input: ${dataItem}`); } - this._tupleSignature = this._computeSignatureOfMembers(); + this._signature = this._computeSignatureOfMembers(); } public getSignature(): string { - return this._tupleSignature; + return this._signature; } } |