revert comment and logs

pull/3951/head
Oleksii Kosynskyi 1 year ago
parent 3a34f5c6eb
commit 898e2fa1d0
No known key found for this signature in database
GPG Key ID: B4A8D3CCE22EA65E
  1. 11
      apps/remix-ide-e2e/src/tests/plugin_api.ts
  2. 9
      apps/remix-ide/src/blockchain/blockchain.tsx
  3. 3
      apps/remix-ide/src/blockchain/providers/vm.ts
  4. 7
      libs/remix-debug/test/decoder/stateTests/mapping.ts
  5. 1
      libs/remix-simulator/src/provider.ts
  6. 2
      libs/remix-tests/tests/testRunner.cli.spec.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' })

@ -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()
)

@ -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

@ -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
})

@ -103,7 +103,6 @@ export class Provider {
callback(err,result)
}
if(err){
console.log('err',err)
return reject(err)
}
return resolve(result)

@ -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.../)

Loading…
Cancel
Save