Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions libs/remix-lib/src/execution/logsManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export class LogsManager {
blockHash: bytesToHex(block.hash()),
transactionHash: bytesToHex(tx.hash()),
transactionIndex: '0x' + i.toString(16),
// TODO: if it's a contract deploy, it should be that address instead
address: log.address,
// Use contract address if it's a contract deployment
address: receipt.contractAddress || log.address,
data: log.data,
topics: log.topics
}
Expand Down Expand Up @@ -170,8 +170,8 @@ export class LogsManager {
blockHash: bytesToHex(log.block.hash()),
transactionHash: bytesToHex(log.tx.hash()),
transactionIndex: '0x' + log.txNumber.toString(16),
// TODO: if it's a contract deploy, it should be that address instead
address: log.log.address,
// Use contract address if it's a contract deployment
address: log.receipt && log.receipt.contractAddress ? log.receipt.contractAddress : log.log.address,
data: log.log.data,
topics: log.log.topics
}
Expand All @@ -188,8 +188,8 @@ export class LogsManager {
blockHash: bytesToHex(log.block.hash()),
transactionHash: bytesToHex(log.tx.hash()),
transactionIndex: '0x' + log.txNumber.toString(16),
// TODO: if it's a contract deploy, it should be that address instead
address: log.log.address,
// Use contract address if it's a contract deployment
address: log.receipt && log.receipt.contractAddress ? log.receipt.contractAddress : log.log.address,
data: log.log.data,
topics: log.log.topics
})
Expand Down