removed old log messages
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user