From c93cc86ff51887b4fc7c94a37f073c25eb043b8e Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 4 Oct 2021 12:28:52 +0200 Subject: [PATCH] remove console.log --- libs/remix-debug/test/debugger.ts | 1 - libs/remix-debug/test/decoder/stateTests/mapping.ts | 3 --- libs/remix-debug/test/vmCall.ts | 8 -------- 3 files changed, 12 deletions(-) diff --git a/libs/remix-debug/test/debugger.ts b/libs/remix-debug/test/debugger.ts index e98f24d839..8ce4bed268 100644 --- a/libs/remix-debug/test/debugger.ts +++ b/libs/remix-debug/test/debugger.ts @@ -263,7 +263,6 @@ function testDebugging (debugManager) { debugManager.decodeLocalsAt(327, location, (error, decodedlocals) => { if (error) return t.end(error) const res = deepequal(decodedlocals, tested) - console.log(res) t.ok(res, `test if locals does match. expected: ${JSON.stringify(tested)} - current: ${JSON.stringify(decodedlocals)}`) }) } catch (error) { diff --git a/libs/remix-debug/test/decoder/stateTests/mapping.ts b/libs/remix-debug/test/decoder/stateTests/mapping.ts index 9f82c7b495..f2467efb29 100644 --- a/libs/remix-debug/test/decoder/stateTests/mapping.ts +++ b/libs/remix-debug/test/decoder/stateTests/mapping.ts @@ -8,12 +8,10 @@ import { StorageViewer } from '../../../src/storage/storageViewer' import { Address, bufferToHex } from 'ethereumjs-util' module.exports = async function testMappingStorage (st, cb) { - console.log('start testMappingStorage') var mappingStorage = require('../contracts/mappingStorage') var privateKey = Buffer.from('503f38a9c967ed597e47fe25643985f032b072db8075426a92110f82df48dfcb', 'hex') var output = compile(compilerInput(mappingStorage.contract)) output = JSON.parse(output); - console.log('BYTECODE', output.contracts['test.sol']['SimpleMappingState'].evm.bytecode.object); const web3 = await (vmCall as any).getWeb3(); (vmCall as any).sendTx(web3, {nonce: 0, privateKey: privateKey}, null, 0, output.contracts['test.sol']['SimpleMappingState'].evm.bytecode.object, function (error, hash) { if (error) { @@ -26,7 +24,6 @@ module.exports = async function testMappingStorage (st, cb) { st.end(error) } else { // const storage = await this.vm.stateManager.dumpStorage(data.to) - console.log(tx); // (vmCall as any).web3().eth.getCode(tx.contractAddress).then((code) => console.log('code:', code)) // (vmCall as any).web3().debug.traceTransaction(hash).then((code) => console.log('trace:', code)) testMapping(st, privateKey, tx.contractAddress, output, web3, cb) diff --git a/libs/remix-debug/test/vmCall.ts b/libs/remix-debug/test/vmCall.ts index 351563c0b3..d8d400c58c 100644 --- a/libs/remix-debug/test/vmCall.ts +++ b/libs/remix-debug/test/vmCall.ts @@ -24,13 +24,6 @@ async function getWeb3 () { async function sendTx (web3, from, to, value, data, cb) { try { cb = cb || (() => {}) - console.log('TX', { - from: utileth.Address.fromPrivateKey(from.privateKey).toString('hex'), - to, - value, - data, - gas: 7000000 - }) const receipt = await web3.eth.sendTransaction({ from: utileth.Address.fromPrivateKey(from.privateKey).toString('hex'), to, @@ -38,7 +31,6 @@ async function sendTx (web3, from, to, value, data, cb) { data, gas: 7000000 }) - console.log('end tx') cb(null, receipt.transactionHash) return receipt.transactionHash } catch (e) {