From bf5b6d3e9fb369d1580985c0ecbaf9c65415ad89 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 23 Sep 2021 15:33:12 +0200 Subject: [PATCH] linting --- apps/remix-ide-e2e/src/tests/terminal.test.ts | 2 +- libs/remix-lib/src/execution/logsManager.ts | 26 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/terminal.test.ts b/apps/remix-ide-e2e/src/tests/terminal.test.ts index f026662729..bc6f29c13b 100644 --- a/apps/remix-ide-e2e/src/tests/terminal.test.ts +++ b/apps/remix-ide-e2e/src/tests/terminal.test.ts @@ -106,7 +106,7 @@ module.exports = { .pause(1000) .executeScript('remix.execute(\'resolveExternalUrlAndSaveToaPath.js\')') .waitForElementContainsText('*[data-id="terminalJournal"]', 'abstract contract ERC20Burnable', 60000) - .openFile('.deps/github/newFile.sol') + .openFile('.deps/github/newFile.sol') }, 'Deploy "Owner" using an ether.js script listen to event and check event are logged in the terminal': function (browser: NightwatchBrowser) { diff --git a/libs/remix-lib/src/execution/logsManager.ts b/libs/remix-lib/src/execution/logsManager.ts index 4fcb0b224c..e852d9a742 100644 --- a/libs/remix-lib/src/execution/logsManager.ts +++ b/libs/remix-lib/src/execution/logsManager.ts @@ -146,19 +146,19 @@ 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 - } - }) + .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 + } + }) } getLogsFor (params) {