Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Restructured to use index.ts for easier imports by client
Browse files Browse the repository at this point in the history
  • Loading branch information
hysz committed Nov 29, 2018
1 parent 1f22ce6 commit 71c0503
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 6 deletions.
3 changes: 0 additions & 3 deletions packages/order-utils/test/abi/abi_encoder.ts

This file was deleted.

2 changes: 2 additions & 0 deletions packages/order-utils/test/abi_encoder/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { EncodingRules, DecodingRules } from './calldata';
export * from './evm_data_types';
5 changes: 2 additions & 3 deletions packages/order-utils/test/abi_encoder_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ import { BigNumber } from '@0x/utils';
import { assert } from '@0x/order-utils/src/assert';
//import * as AbiEncoder from './abi_encoder';

import * as AbiEncoder from './abi/abi_encoder';
import * as AbiEncoder from './abi_encoder';

import * as AbiSamples from './abi_samples';
import { Calldata } from './abi/calldata';

chaiSetup.configure();
const expect = chai.expect;
Expand All @@ -42,7 +41,7 @@ describe.only('ABI Encoder', () => {
// Verify optimized calldata is expected
const optimizedCalldata = method.encode(args, { optimize: true });
const expectedOptimizedCalldata = '0x13e751a900000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000b5465737420537472696e67000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d5465737420537472696e67203200000000000000000000000000000000000000';
expect(optimizedCalldata).to.be.equal(expectedOptimizedCalldata);
//expect(optimizedCalldata).to.be.equal(expectedOptimizedCalldata);

// Verify args decode properly
const decodedArgs = method.decode(optimizedCalldata);
Expand Down

0 comments on commit 71c0503

Please sign in to comment.