diff --git a/libs/remix-lib/src/execution/logsManager.ts b/libs/remix-lib/src/execution/logsManager.ts index 39705e7342..4fcb0b224c 100644 --- a/libs/remix-lib/src/execution/logsManager.ts +++ b/libs/remix-lib/src/execution/logsManager.ts @@ -147,19 +147,18 @@ export class LogsManager { getLogsByTxHash (hash) { return this.oldLogs.filter((log) => '0x' + log.tx.hash().toString('hex') === hash) .map((log) => { - return { - logIndex: '0x1', // 1 - blockNumber: log.blockNumber, - blockHash: ('0x' + log.block.hash().toString('hex')), - transactionHash: ('0x' + log.tx.hash().toString('hex')), - transactionIndex: '0x' + log.txNumber.toString(16), - // TODO: if it's a contract deploy, it should be that address instead - address: log.log.address, - data: log.log.data, - topics: log.log.topics - } + return { + logIndex: '0x1', // 1 + blockNumber: log.blockNumber, + blockHash: ('0x' + log.block.hash().toString('hex')), + transactionHash: ('0x' + log.tx.hash().toString('hex')), + transactionIndex: '0x' + log.txNumber.toString(16), + // TODO: if it's a contract deploy, it should be that address instead + address: log.log.address, + data: log.log.data, + topics: log.log.topics + } }) - } getLogsFor (params) { diff --git a/libs/remix-simulator/src/methods/transactions.ts b/libs/remix-simulator/src/methods/transactions.ts index b0e3e4e3e7..9d93231e55 100644 --- a/libs/remix-simulator/src/methods/transactions.ts +++ b/libs/remix-simulator/src/methods/transactions.ts @@ -203,7 +203,7 @@ export class Transactions { input: receipt.input, nonce: '0x' + tx.nonce.toString('hex'), transactionIndex: '0x0', - value: receipt.value, + value: receipt.value // "value":"0xf3dbb76162000" // 4290000000000000 // "v": "0x25", // 37 // "r": "0x1b5e176d927f8e9ab405058b2d2457392da3e20f328b16ddabcebc33eaac5fea",