diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-11-20 02:44:17 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 08:38:10 +0800 |
commit | bc538c71fcab68578a82b08b4467240f8e79b96b (patch) | |
tree | 5fd838876f3164f0adf232d364d8b5e8e5feb248 /packages/utils/src | |
parent | 880540f4b8fd8dd7a7f1a93cf7fbcdc17e1fbb13 (diff) | |
download | dexon-0x-contracts-bc538c71fcab68578a82b08b4467240f8e79b96b.tar dexon-0x-contracts-bc538c71fcab68578a82b08b4467240f8e79b96b.tar.gz dexon-0x-contracts-bc538c71fcab68578a82b08b4467240f8e79b96b.tar.bz2 dexon-0x-contracts-bc538c71fcab68578a82b08b4467240f8e79b96b.tar.lz dexon-0x-contracts-bc538c71fcab68578a82b08b4467240f8e79b96b.tar.xz dexon-0x-contracts-bc538c71fcab68578a82b08b4467240f8e79b96b.tar.zst dexon-0x-contracts-bc538c71fcab68578a82b08b4467240f8e79b96b.zip |
Tests - Encode/Decode Array
Diffstat (limited to 'packages/utils/src')
-rw-r--r-- | packages/utils/src/abi_encoder/data_type.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/utils/src/abi_encoder/data_type.ts b/packages/utils/src/abi_encoder/data_type.ts index 15de12a2f..022f5621f 100644 --- a/packages/utils/src/abi_encoder/data_type.ts +++ b/packages/utils/src/abi_encoder/data_type.ts @@ -41,8 +41,7 @@ export abstract class DataType { } public decode(calldata: string, rules?: DecodingRules): any { - const rawCalldata = new RawCalldata(calldata, false); - console.log(`HERE DUDE ${JSON.stringify(rawCalldata)}`); + const rawCalldata = new RawCalldata(calldata, false); // @TODO Sohuld not hardcode false here const rules_ = rules ? rules : DataType.DEFAULT_DECODING_RULES; const value = this.generateValue(rawCalldata, rules_); return value; @@ -278,7 +277,6 @@ export abstract class MemberDataType extends DataType { value = []; _.each(members, (member: DataType, idx: number) => { let memberValue = member.generateValue(calldata, rules); - console.log(`MEMBER VALUE: ${memberValue}`); (value as any[]).push(memberValue); }); } |