@ -500,7 +500,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 = 'console.log:\n'
for (const log of hhlogs) {
finalLogs = finalLogs + log.join('') + '\n'
}
@ -86,7 +86,7 @@ export class Transactions {
eth_getHHLogsForTx (payload, cb) {
const txHash = payload.params[0]
cb(null, this.vmContext.currentVm.web3vm.hhLogs[txHash])
cb(null, this.vmContext.currentVm.web3vm.hhLogs[txHash] ? this.vmContext.currentVm.web3vm.hhLogs[txHash] : [])
eth_getTransactionReceipt (payload, cb) {