diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-11-14 04:36:14 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 08:38:10 +0800 |
commit | 7c733662e2669ca6682920f321c81e770605b3d5 (patch) | |
tree | 9d25d3461f18459a67d65ad383d09cda214ab699 /packages/order-utils/test/abi_encoder_test.ts | |
parent | 52474a0b8edb2f49f850069c1a79dcd9b5d77e9d (diff) | |
download | dexon-0x-contracts-7c733662e2669ca6682920f321c81e770605b3d5.tar dexon-0x-contracts-7c733662e2669ca6682920f321c81e770605b3d5.tar.gz dexon-0x-contracts-7c733662e2669ca6682920f321c81e770605b3d5.tar.bz2 dexon-0x-contracts-7c733662e2669ca6682920f321c81e770605b3d5.tar.lz dexon-0x-contracts-7c733662e2669ca6682920f321c81e770605b3d5.tar.xz dexon-0x-contracts-7c733662e2669ca6682920f321c81e770605b3d5.tar.zst dexon-0x-contracts-7c733662e2669ca6682920f321c81e770605b3d5.zip |
Annotated calldata (draft).
Diffstat (limited to 'packages/order-utils/test/abi_encoder_test.ts')
-rw-r--r-- | packages/order-utils/test/abi_encoder_test.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/order-utils/test/abi_encoder_test.ts b/packages/order-utils/test/abi_encoder_test.ts index 137850b35..8b836f77f 100644 --- a/packages/order-utils/test/abi_encoder_test.ts +++ b/packages/order-utils/test/abi_encoder_test.ts @@ -17,6 +17,7 @@ import { assert } from '@0x/order-utils/src/assert'; import * as AbiEncoder from './abi/abi_encoder'; import * as AbiSamples from './abi_samples'; +import { Calldata } from './abi/calldata'; AbiEncoder.DataTypeFactory.setImpl(new AbiEncoder.EvmDataTypeFactoryImpl()); @@ -88,8 +89,12 @@ describe.only('ABI Encoder', () => { someArrayOfTuplesWithDynamicTypes: someArrayOfTuplesWithDynamicTypes }; - const calldata = method.encode(args); + const calldata = method.encode(args, new Calldata(), true); console.log(calldata); + + + throw new Error(`done`); + console.log('*'.repeat(40)); console.log(JSON.stringify(args)); console.log(method.getSignature()); |