diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-11-10 10:59:27 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 08:38:10 +0800 |
commit | 41e01e98064b129f588d72ed25267f4865c58f5c (patch) | |
tree | 194e741b271d863d88d18c9b14471f336f43b633 /packages/order-utils/test/abi_encoder_test.ts | |
parent | 0835cf0ea2bb3c2c18d2a5d44ec914e2945af1b0 (diff) | |
download | dexon-0x-contracts-41e01e98064b129f588d72ed25267f4865c58f5c.tar dexon-0x-contracts-41e01e98064b129f588d72ed25267f4865c58f5c.tar.gz dexon-0x-contracts-41e01e98064b129f588d72ed25267f4865c58f5c.tar.bz2 dexon-0x-contracts-41e01e98064b129f588d72ed25267f4865c58f5c.tar.lz dexon-0x-contracts-41e01e98064b129f588d72ed25267f4865c58f5c.tar.xz dexon-0x-contracts-41e01e98064b129f588d72ed25267f4865c58f5c.tar.zst dexon-0x-contracts-41e01e98064b129f588d72ed25267f4865c58f5c.zip |
making progress on basic example
Diffstat (limited to 'packages/order-utils/test/abi_encoder_test.ts')
-rw-r--r-- | packages/order-utils/test/abi_encoder_test.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/order-utils/test/abi_encoder_test.ts b/packages/order-utils/test/abi_encoder_test.ts index d75c9dbf1..6655af1ff 100644 --- a/packages/order-utils/test/abi_encoder_test.ts +++ b/packages/order-utils/test/abi_encoder_test.ts @@ -18,13 +18,15 @@ import * as AbiEncoder from './abi/abi_encoder'; import * as AbiSamples from './abi_samples'; +AbiEncoder.DataTypeFactory.setImpl(new AbiEncoder.EvmDataTypeFactoryImpl()); + chaiSetup.configure(); const expect = chai.expect; describe.only('ABI Encoder', () => { describe.only('ABI Tests at Method Level', () => { - it('Crazy ABI', async () => { + it.skip('Crazy ABI', async () => { const method = new AbiEncoder.Method(AbiSamples.crazyAbi); console.log(method.getSignature()); @@ -89,8 +91,9 @@ describe.only('ABI Encoder', () => { expect(calldata).to.be.equal(expectedCalldata); }); - it('Crazy ABI #1', async () => { + it.skip('Crazy ABI #1', async () => { const method = new AbiEncoder.Method(AbiSamples.crazyAbi1); + const args = [ new BigNumber(256745454), new BigNumber(-256745454), @@ -115,6 +118,7 @@ describe.only('ABI Encoder', () => { it('Types with default widths', async () => { const method = new AbiEncoder.Method(AbiSamples.typesWithDefaultWidthsAbi); + console.log(method); const args = [new BigNumber(1), new BigNumber(-1), '0x56', [new BigNumber(1)], [new BigNumber(-1)], ['0x56']]; const calldata = method.encode(args); console.log(calldata); @@ -325,7 +329,7 @@ describe.only('ABI Encoder', () => { expect(calldata).to.be.equal(expectedCalldata); }); - it('Yessir', async () => { + it.only('Yessir', async () => { const method = new AbiEncoder.Method(AbiSamples.simpleAbi); const calldata = method.encode([new BigNumber(5), 'five']); console.log(calldata); |