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
405ca58a
Commit
405ca58a
authored
Oct 04, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hardcode txindex
parent
167ef04c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
transactions.ts
libs/remix-simulator/src/methods/transactions.ts
+5
-4
No files found.
libs/remix-simulator/src/methods/transactions.ts
View file @
405ca58a
...
...
@@ -11,6 +11,7 @@ export class Transactions {
tags
txRunnerVMInstance
txRunnerInstance
TX_INDEX
=
'0x0'
// currently there's always only 1 tx per block, so the transaction index will always be 0x0
constructor
(
vmContext
)
{
this
.
vmContext
=
vmContext
...
...
@@ -101,7 +102,7 @@ export class Transactions {
const
r
:
Record
<
string
,
unknown
>
=
{
transactionHash
:
receipt
.
hash
,
transactionIndex
:
'0x0'
,
transactionIndex
:
this
.
TX_INDEX
,
blockHash
:
'0x'
+
txBlock
.
hash
().
toString
(
'hex'
),
blockNumber
:
'0x'
+
txBlock
.
header
.
number
.
toString
(
'hex'
),
gasUsed
:
receipt
.
gasUsed
,
...
...
@@ -202,7 +203,7 @@ export class Transactions {
hash
:
receipt
.
transactionHash
,
input
:
receipt
.
input
,
nonce
:
'0x'
+
tx
.
nonce
.
toString
(
'hex'
),
transactionIndex
:
'0x0'
,
transactionIndex
:
this
.
TX_INDEX
,
value
:
receipt
.
value
// "value":"0xf3dbb76162000" // 4290000000000000
// "v": "0x25", // 37
...
...
@@ -251,7 +252,7 @@ export class Transactions {
hash
:
receipt
.
transactionHash
,
input
:
receipt
.
input
,
nonce
:
'0x'
+
tx
.
nonce
.
toString
(
'hex'
),
// "transactionIndex": 0
,
transactionIndex
:
this
.
TX_INDEX
,
value
:
receipt
.
value
// "value":"0xf3dbb76162000" // 4290000000000000
// "v": "0x25", // 37
...
...
@@ -296,7 +297,7 @@ export class Transactions {
hash
:
receipt
.
transactionHash
,
input
:
receipt
.
input
,
nonce
:
'0x'
+
tx
.
nonce
.
toString
(
'hex'
),
transactionIndex
:
'0x0'
,
transactionIndex
:
this
.
TX_INDEX
,
value
:
receipt
.
value
// "value":"0xf3dbb76162000" // 4290000000000000
// "v": "0x25", // 37
...
...
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