From b213cb39747ba0b78138d5a1db07b511bd9fd3b8 Mon Sep 17 00:00:00 2001 From: Greg Hysen Date: Mon, 19 Nov 2018 13:05:36 -0800 Subject: Temporary change for testing functions --- packages/utils/src/abi_encoder/data_type.ts | 2 +- packages/utils/test/abi_encoder_test.ts | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/utils/src/abi_encoder/data_type.ts b/packages/utils/src/abi_encoder/data_type.ts index 0f3cecac5..21c08ef54 100644 --- a/packages/utils/src/abi_encoder/data_type.ts +++ b/packages/utils/src/abi_encoder/data_type.ts @@ -41,7 +41,7 @@ export abstract class DataType { } public decode(calldata: string, rules?: DecodingRules): any { - const rawCalldata = new RawCalldata(calldata, false); // @TODO Sohuld not hardcode false here + const rawCalldata = new RawCalldata(calldata, true); // @TODO Sohuld not hardcode false here const rules_ = rules ? rules : DataType.DEFAULT_DECODING_RULES; const value = this.generateValue(rawCalldata, rules_); return value; diff --git a/packages/utils/test/abi_encoder_test.ts b/packages/utils/test/abi_encoder_test.ts index b541cd758..6d0d0c390 100644 --- a/packages/utils/test/abi_encoder_test.ts +++ b/packages/utils/test/abi_encoder_test.ts @@ -11,12 +11,7 @@ chaiSetup.configure(); const expect = chai.expect; describe.only('ABI Encoder', () => { - describe.only('Optimizer', () => { - - }); - - describe('ABI Tests at Method Level', () => { - + describe('Optimizer', () => { it('Should reuse duplicated strings in string array', async () => { const method = new AbiEncoder.Method(AbiSamples.GAbi); @@ -147,7 +142,9 @@ describe.only('ABI Encoder', () => { console.log(JSON.stringify(decodedArgs)); expect(decodedArgsJson).to.be.equal(argsJson); }); + }); + describe.only('ABI Tests at Method Level', () => { it('Crazy ABI', async () => { const method = new AbiEncoder.Method(AbiSamples.crazyAbi); console.log(method.getSignature()); -- cgit v1.2.3