productionpatch
yann300 3 years ago
parent 7f98ff8292
commit cd6907e48d
  1. 23
      libs/remix-lib/src/execution/logsManager.ts
  2. 2
      libs/remix-simulator/src/methods/transactions.ts

@ -147,19 +147,18 @@ export class LogsManager {
getLogsByTxHash (hash) { getLogsByTxHash (hash) {
return this.oldLogs.filter((log) => '0x' + log.tx.hash().toString('hex') === hash) return this.oldLogs.filter((log) => '0x' + log.tx.hash().toString('hex') === hash)
.map((log) => { .map((log) => {
return { return {
logIndex: '0x1', // 1 logIndex: '0x1', // 1
blockNumber: log.blockNumber, blockNumber: log.blockNumber,
blockHash: ('0x' + log.block.hash().toString('hex')), blockHash: ('0x' + log.block.hash().toString('hex')),
transactionHash: ('0x' + log.tx.hash().toString('hex')), transactionHash: ('0x' + log.tx.hash().toString('hex')),
transactionIndex: '0x' + log.txNumber.toString(16), transactionIndex: '0x' + log.txNumber.toString(16),
// TODO: if it's a contract deploy, it should be that address instead // TODO: if it's a contract deploy, it should be that address instead
address: log.log.address, address: log.log.address,
data: log.log.data, data: log.log.data,
topics: log.log.topics topics: log.log.topics
} }
}) })
} }
getLogsFor (params) { getLogsFor (params) {

@ -203,7 +203,7 @@ export class Transactions {
input: receipt.input, input: receipt.input,
nonce: '0x' + tx.nonce.toString('hex'), nonce: '0x' + tx.nonce.toString('hex'),
transactionIndex: '0x0', transactionIndex: '0x0',
value: receipt.value, value: receipt.value
// "value":"0xf3dbb76162000" // 4290000000000000 // "value":"0xf3dbb76162000" // 4290000000000000
// "v": "0x25", // 37 // "v": "0x25", // 37
// "r": "0x1b5e176d927f8e9ab405058b2d2457392da3e20f328b16ddabcebc33eaac5fea", // "r": "0x1b5e176d927f8e9ab405058b2d2457392da3e20f328b16ddabcebc33eaac5fea",

Loading…
Cancel
Save