Unverified Commit ef152de6 authored by David Disu's avatar David Disu Committed by GitHub

Merge branch 'master' into react-guide

parents 3f9d1afd 6f42efc4
...@@ -501,7 +501,7 @@ class Blockchain extends Plugin { ...@@ -501,7 +501,7 @@ class Blockchain extends Plugin {
if (isVM) { if (isVM) {
const hhlogs = await this.web3().eth.getHHLogsForTx(txResult.transactionHash) const hhlogs = await this.web3().eth.getHHLogsForTx(txResult.transactionHash)
if (hhlogs && hhlogs.length) { if (hhlogs && hhlogs.length) {
let finalLogs = 'console.log:\n' let finalLogs = '<b>console.log:</b>\n'
for (const log of hhlogs) { for (const log of hhlogs) {
let formattedLog let formattedLog
// Hardhat implements the same formatting options that can be found in Node.js' console.log, // Hardhat implements the same formatting options that can be found in Node.js' console.log,
...@@ -513,7 +513,7 @@ class Blockchain extends Plugin { ...@@ -513,7 +513,7 @@ class Blockchain extends Plugin {
} else { } else {
formattedLog = log.join(' ') formattedLog = log.join(' ')
} }
finalLogs = finalLogs + formattedLog + '\n' finalLogs = finalLogs + '&emsp;' + formattedLog + '\n'
} }
this.call('terminal', 'log', { type: 'info', value: finalLogs }) this.call('terminal', 'log', { type: 'info', value: finalLogs })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment