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
cd6907e4
Commit
cd6907e4
authored
Sep 23, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linting
parent
7f98ff82
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
logsManager.ts
libs/remix-lib/src/execution/logsManager.ts
+11
-12
transactions.ts
libs/remix-simulator/src/methods/transactions.ts
+1
-1
No files found.
libs/remix-lib/src/execution/logsManager.ts
View file @
cd6907e4
...
...
@@ -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
)
{
...
...
libs/remix-simulator/src/methods/transactions.ts
View file @
cd6907e4
...
...
@@ -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",
...
...
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