Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
bf5b6d3e
Commit
bf5b6d3e
authored
Sep 23, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linting
parent
cd6907e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
terminal.test.ts
apps/remix-ide-e2e/src/tests/terminal.test.ts
+1
-1
logsManager.ts
libs/remix-lib/src/execution/logsManager.ts
+13
-13
No files found.
apps/remix-ide-e2e/src/tests/terminal.test.ts
View file @
bf5b6d3e
...
...
@@ -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
)
{
...
...
libs/remix-lib/src/execution/logsManager.ts
View file @
bf5b6d3e
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment