diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-11-15 05:53:15 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 08:38:10 +0800 |
commit | 063871e549483ba36e5ee2317249eb6dccda24a4 (patch) | |
tree | c8b2264799f233c11afff60ae35e58d23695787b /packages/order-utils | |
parent | 2d2255e9af42f6441ee620c4aa74bd1981dfe03a (diff) | |
download | dexon-0x-contracts-063871e549483ba36e5ee2317249eb6dccda24a4.tar dexon-0x-contracts-063871e549483ba36e5ee2317249eb6dccda24a4.tar.gz dexon-0x-contracts-063871e549483ba36e5ee2317249eb6dccda24a4.tar.bz2 dexon-0x-contracts-063871e549483ba36e5ee2317249eb6dccda24a4.tar.lz dexon-0x-contracts-063871e549483ba36e5ee2317249eb6dccda24a4.tar.xz dexon-0x-contracts-063871e549483ba36e5ee2317249eb6dccda24a4.tar.zst dexon-0x-contracts-063871e549483ba36e5ee2317249eb6dccda24a4.zip |
removed old log messages
Diffstat (limited to 'packages/order-utils')
-rw-r--r-- | packages/order-utils/test/abi/calldata.ts | 5 | ||||
-rw-r--r-- | packages/order-utils/test/abi/data_type.ts | 1 | ||||
-rw-r--r-- | packages/order-utils/test/abi/evm_data_types.ts | 5 |
3 files changed, 0 insertions, 11 deletions
diff --git a/packages/order-utils/test/abi/calldata.ts b/packages/order-utils/test/abi/calldata.ts index 7eb4e0026..32278e5c5 100644 --- a/packages/order-utils/test/abi/calldata.ts +++ b/packages/order-utils/test/abi/calldata.ts @@ -302,7 +302,6 @@ export class Calldata { const size = block.getSizeInBytes(); const name = block.getName(); const parentName = block.getParentName(); - console.log('*'.repeat(50), parentName, ' vs ', name); //const ancestrialNamesOffset = name.startsWith('ptr<') ? 4 : 0; //const parentOffset = name.lastIndexOf(parentName); @@ -378,9 +377,7 @@ export class Calldata { // Note that they are ordered the same as const subtreeQueue = this.createQueue(this.root); let block: CalldataBlock | undefined; - console.log('*'.repeat(100), ' OPTIMIZING ', '*'.repeat(100)); while ((block = subtreeQueue.popBack()) !== undefined) { - console.log(block.getName()); if (block instanceof DependentCalldataBlock) { const blockHashBuf = block.getDependency().computeHash(); const blockHash = ethUtil.bufferToHex(blockHashBuf); @@ -399,7 +396,6 @@ export class Calldata { blocksByHash[blockHash] = block; } } - console.log('*'.repeat(100), ' FINISHED OPTIMIZING ', '*'.repeat(100)); } public toHexString(): string { @@ -495,7 +491,6 @@ export class RawCalldata { public setOffset(offsetInBytes: number) { this.offset = offsetInBytes; - console.log('0'.repeat(100), this.offset); } public startScope() { diff --git a/packages/order-utils/test/abi/data_type.ts b/packages/order-utils/test/abi/data_type.ts index 6ad0b2736..7884cf3cf 100644 --- a/packages/order-utils/test/abi/data_type.ts +++ b/packages/order-utils/test/abi/data_type.ts @@ -165,7 +165,6 @@ export abstract class MemberDataType extends DataType { } private createMembersWithLength(dataItem: DataItem, length: number): [DataType[], MemberMap] { - console.log('!'.repeat(30), dataItem); let members: DataType[] = []; let memberMap: MemberMap = {}; const range = _.range(length); diff --git a/packages/order-utils/test/abi/evm_data_types.ts b/packages/order-utils/test/abi/evm_data_types.ts index 9504b1a10..aff4bc991 100644 --- a/packages/order-utils/test/abi/evm_data_types.ts +++ b/packages/order-utils/test/abi/evm_data_types.ts @@ -107,7 +107,6 @@ abstract class Number extends PayloadDataType { } public encodeValue(value: BigNumber): Buffer { - console.log(value); if (value.greaterThan(this.getMaxValue())) { throw `tried to assign value of ${value}, which exceeds max value of ${this.getMaxValue()}`; } else if (value.lessThan(this.getMinValue())) { @@ -366,7 +365,6 @@ export class SolString extends PayloadDataType { const wordsForValue = Math.ceil(length / 32); const paddedValueBuf = calldata.popWords(wordsForValue); const valueBuf = paddedValueBuf.slice(0, length); - console.log('LENGTH UPINYA === ', length); const value = valueBuf.toString('ascii'); return value; } @@ -397,7 +395,6 @@ export class Tuple extends MemberDataType { private tupleSignature: string; constructor(dataItem: DataItem) { - console.log(dataItem); super(dataItem); if (!Tuple.matchGrammar(dataItem.type)) { throw new Error(`Tried to instantiate Tuple with bad input: ${dataItem}`); @@ -516,8 +513,6 @@ export class Method extends MemberDataType { export class EvmDataTypeFactoryImpl implements DataTypeFactoryImpl { public mapDataItemToDataType(dataItem: DataItem): DataType { - console.log(`Type: ${dataItem.type}`); - if (SolArray.matchGrammar(dataItem.type)) return new SolArray(dataItem); if (Address.matchGrammar(dataItem.type)) return new Address(dataItem); if (Bool.matchGrammar(dataItem.type)) return new Bool(dataItem); |