|
|
|
@ -501,7 +501,7 @@ class Blockchain extends Plugin { |
|
|
|
|
if (isVM) { |
|
|
|
|
const hhlogs = await this.web3().eth.getHHLogsForTx(txResult.transactionHash) |
|
|
|
|
if (hhlogs && hhlogs.length) { |
|
|
|
|
let finalLogs = 'console.log:\n' |
|
|
|
|
let finalLogs = '<b>console.log:</b>\n' |
|
|
|
|
for (const log of hhlogs) { |
|
|
|
|
let formattedLog |
|
|
|
|
// Hardhat implements the same formatting options that can be found in Node.js' console.log,
|
|
|
|
@ -513,7 +513,7 @@ class Blockchain extends Plugin { |
|
|
|
|
} else { |
|
|
|
|
formattedLog = log.join(' ') |
|
|
|
|
} |
|
|
|
|
finalLogs = finalLogs + formattedLog + '\n' |
|
|
|
|
finalLogs = finalLogs + ' ' + formattedLog + '\n' |
|
|
|
|
} |
|
|
|
|
this.call('terminal', 'log', { type: 'info', value: finalLogs }) |
|
|
|
|
} |
|
|
|
|