Merge pull request #2492 from ethereum/extraLogs

remove extra console logs
pull/2491/head
yann300 2 years ago committed by GitHub
commit d12b69045f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      libs/remix-simulator/src/methods/blocks.ts

@ -40,7 +40,6 @@ export class Blocks {
return cb(new Error('block not found')) return cb(new Error('block not found'))
} }
console.log(block.transactions)
const transactions = block.transactions.map((t) => { const transactions = block.transactions.map((t) => {
const hash = '0x' + t.hash().toString('hex') const hash = '0x' + t.hash().toString('hex')
const tx = this.vmContext.txByHash[hash] const tx = this.vmContext.txByHash[hash]
@ -95,7 +94,6 @@ export class Blocks {
eth_getBlockByHash (payload, cb) { eth_getBlockByHash (payload, cb) {
const block = this.vmContext.blocks[payload.params[0]] const block = this.vmContext.blocks[payload.params[0]]
console.log(block.transactions)
const transactions = block.transactions.map((t) => { const transactions = block.transactions.map((t) => {
const hash = '0x' + t.hash().toString('hex') const hash = '0x' + t.hash().toString('hex')
const tx = this.vmContext.txByHash[hash] const tx = this.vmContext.txByHash[hash]

Loading…
Cancel
Save