diff --git a/apps/remix-ide-e2e/src/tests/plugin_api.ts b/apps/remix-ide-e2e/src/tests/plugin_api.ts index b656072c7d..c0bbb316e9 100644 --- a/apps/remix-ide-e2e/src/tests/plugin_api.ts +++ b/apps/remix-ide-e2e/src/tests/plugin_api.ts @@ -31,12 +31,7 @@ const debugValues = async function (browser: NightwatchBrowser, field: string, e return } browser.waitForElementVisible(`//*[@id="${field}"]`).getText(`//*[@id="${field}"]`, (result) => { - console.log(result) if (!result.value.toString().includes(expected)) { - console.log('Actual result:') - console.log(result.value.toString()) - console.log('Expected result:') - console.log(expected) getBrowserLogs(browser) browser.assert.ok(false, 'Returned value from call does not match expected value.') } else { @@ -178,9 +173,9 @@ module.exports = { }, // UDAPP - // 'Should get accounts #group1': async function (browser: NightwatchBrowser) { - // await clickAndCheckLog(browser, 'udapp:getAccounts', '0x5B38Da6a701c568545dCfcB03FcB875f56beddC4', null, null) - // }, + 'Should get accounts #group1': async function (browser: NightwatchBrowser) { + await clickAndCheckLog(browser, 'udapp:getAccounts', '0x5B38Da6a701c568545dCfcB03FcB875f56beddC4', null, null) + }, 'Should select another provider #group1': async function (browser: NightwatchBrowser) { await clickAndCheckLog(browser, 'udapp:setEnvironmentMode', null, null, { context: 'vm-berlin' }) diff --git a/apps/remix-ide/src/blockchain/blockchain.tsx b/apps/remix-ide/src/blockchain/blockchain.tsx index 4dd2d434ce..714a363d25 100644 --- a/apps/remix-ide/src/blockchain/blockchain.tsx +++ b/apps/remix-ide/src/blockchain/blockchain.tsx @@ -181,10 +181,8 @@ export class Blockchain extends Plugin { /** Return the list of accounts */ // note: the dual promise/callback is kept for now as it was before getAccounts(cb) { - console.log('getAccounts') return new Promise((resolve, reject) => { this.getCurrentProvider().getAccounts((error, accounts) => { - console.log('get accounts res', error, accounts) if (cb) { return cb(error, accounts) } @@ -662,13 +660,6 @@ export class Blockchain extends Plugin { return this.getProvider() === 'web3' ? this.config.get('settings/personal-mode') : false } }, - - // isVM: () => { return this.executionContext.isVM() }, - // personalMode: () => { - // return this.getProvider() === 'web3' ? this.config.get('settings/personal-mode') : false - // } - // }, _ => this.executionContext.web3(), _ => this.executionContext.currentblockGasLimit()) - (_) => this.executionContext.web3(), (_) => this.executionContext.currentblockGasLimit() ) diff --git a/apps/remix-ide/src/blockchain/providers/vm.ts b/apps/remix-ide/src/blockchain/providers/vm.ts index 720055df9d..39a57b0197 100644 --- a/apps/remix-ide/src/blockchain/providers/vm.ts +++ b/apps/remix-ide/src/blockchain/providers/vm.ts @@ -25,7 +25,6 @@ export class VMProvider { this.web3.eth.getAccounts() .then(accounts => cb(null, accounts)) .catch(err => { - console.log('err',err) cb('No accounts?') }) } @@ -46,8 +45,6 @@ export class VMProvider { if (!msg.data.error) { this.provider = { sendAsync: (query, callback) => { - console.log('query',query) - console.log('callback',callback) const stamp = Date.now() + incr incr++ stamps[stamp] = callback diff --git a/libs/remix-debug/test/decoder/stateTests/mapping.ts b/libs/remix-debug/test/decoder/stateTests/mapping.ts index 76425f6d54..09056d3693 100644 --- a/libs/remix-debug/test/decoder/stateTests/mapping.ts +++ b/libs/remix-debug/test/decoder/stateTests/mapping.ts @@ -37,7 +37,6 @@ module.exports = async function testMappingStorage (st, cb) { // st.end() ) .catch(error => { - console.log(error) st.end(error) }) } @@ -50,15 +49,15 @@ function testMapping (st, privateKey, contractAddress, output, compilationResult if (error) { console.log(error) st.end(error) - } else { + } else { web3.eth.getTransaction(hash) .then(tx => { const traceManager = new TraceManager({ web3 }) const codeManager = new CodeManager(traceManager) codeManager.clear() console.log(compilationResults) - const solidityProxy = new SolidityProxy({ - getCurrentCalledAddressAt: traceManager.getCurrentCalledAddressAt.bind(traceManager), + const solidityProxy = new SolidityProxy({ + getCurrentCalledAddressAt: traceManager.getCurrentCalledAddressAt.bind(traceManager), getCode: codeManager.getCode.bind(codeManager), compilationResult: () => compilationResults }) diff --git a/libs/remix-simulator/src/provider.ts b/libs/remix-simulator/src/provider.ts index 0d0a7efd38..0cc4af0054 100644 --- a/libs/remix-simulator/src/provider.ts +++ b/libs/remix-simulator/src/provider.ts @@ -103,7 +103,6 @@ export class Provider { callback(err,result) } if(err){ - console.log('err',err) return reject(err) } return resolve(result) diff --git a/libs/remix-tests/tests/testRunner.cli.spec.ts b/libs/remix-tests/tests/testRunner.cli.spec.ts index 543466d68a..f9686ca073 100644 --- a/libs/remix-tests/tests/testRunner.cli.spec.ts +++ b/libs/remix-tests/tests/testRunner.cli.spec.ts @@ -60,7 +60,7 @@ Commands: it('remix-tests running a test file', function() { const res = spawnSync(executablePath, [resolve(__dirname + '/examples_0/assert_ok_test.sol')]) - console.log(res.stdout.toString()) + //console.log(res.stdout.toString()) // match initial lines expect(res.stdout.toString().trim()).to.match(/:: Running tests using remix-tests ::/) expect(res.stdout.toString().trim()).to.match(/creation of library remix_tests.sol:Assert pending.../)