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
fa830de1
Commit
fa830de1
authored
Apr 10, 2019
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add eth_getTransactionCount
parent
13a65fab
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
README.md
remix-simulator/README.md
+1
-1
transactions.js
remix-simulator/src/methods/transactions.js
+11
-1
No files found.
remix-simulator/README.md
View file @
fa830de1
...
@@ -17,7 +17,7 @@ Implemented:
...
@@ -17,7 +17,7 @@ Implemented:
*
[
X
]
eth_blockNumber
*
[
X
]
eth_blockNumber
*
[
X
]
eth_getBalance
*
[
X
]
eth_getBalance
*
[
_
]
eth_getStorageAt
*
[
_
]
eth_getStorageAt
*
[
_
]
eth_getTransactionCount
*
[
X
]
eth_getTransactionCount
*
[
_
]
eth_getBlockTransactionCountByHash
*
[
_
]
eth_getBlockTransactionCountByHash
*
[
_
]
eth_getBlockTransactionCountByNumber
*
[
_
]
eth_getBlockTransactionCountByNumber
*
[
_
]
eth_getUncleCountByBlockHash
*
[
_
]
eth_getUncleCountByBlockHash
...
...
remix-simulator/src/methods/transactions.js
View file @
fa830de1
...
@@ -14,7 +14,8 @@ Transactions.prototype.methods = function () {
...
@@ -14,7 +14,8 @@ Transactions.prototype.methods = function () {
eth_getTransactionReceipt
:
this
.
eth_getTransactionReceipt
.
bind
(
this
),
eth_getTransactionReceipt
:
this
.
eth_getTransactionReceipt
.
bind
(
this
),
eth_getCode
:
this
.
eth_getCode
.
bind
(
this
),
eth_getCode
:
this
.
eth_getCode
.
bind
(
this
),
eth_call
:
this
.
eth_call
.
bind
(
this
),
eth_call
:
this
.
eth_call
.
bind
(
this
),
eth_estimateGas
:
this
.
eth_estimateGas
.
bind
(
this
)
eth_estimateGas
:
this
.
eth_estimateGas
.
bind
(
this
),
eth_getTransactionCount
:
this
.
eth_getTransactionCount
.
bind
(
this
)
}
}
}
}
...
@@ -60,4 +61,13 @@ Transactions.prototype.eth_call = function (payload, cb) {
...
@@ -60,4 +61,13 @@ Transactions.prototype.eth_call = function (payload, cb) {
processTx
(
this
.
accounts
,
payload
,
true
,
cb
)
processTx
(
this
.
accounts
,
payload
,
true
,
cb
)
}
}
Transactions
.
prototype
.
eth_getTransactionCount
=
function
(
payload
,
cb
)
{
let
address
=
payload
.
params
[
0
]
executionContext
.
vm
().
stateManager
.
getAccount
(
address
,
(
err
,
account
)
=>
{
let
nonce
=
new
BN
(
account
.
nonce
).
toString
(
10
)
cb
(
null
,
nonce
)
})
}
module
.
exports
=
Transactions
module
.
exports
=
Transactions
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