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
dba20772
Commit
dba20772
authored
May 30, 2019
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add eth_getUncleCountByBlockHash and eth_getUncleCountByBlockNumber
parent
857a7182
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
blocks.js
remix-simulator/src/methods/blocks.js
+12
-2
No files found.
remix-simulator/src/methods/blocks.js
View file @
dba20772
...
@@ -16,7 +16,9 @@ Blocks.prototype.methods = function () {
...
@@ -16,7 +16,9 @@ Blocks.prototype.methods = function () {
eth_blockNumber
:
this
.
eth_blockNumber
.
bind
(
this
),
eth_blockNumber
:
this
.
eth_blockNumber
.
bind
(
this
),
eth_getBlockByHash
:
this
.
eth_getBlockByHash
.
bind
(
this
),
eth_getBlockByHash
:
this
.
eth_getBlockByHash
.
bind
(
this
),
eth_getBlockTransactionCountByHash
:
this
.
eth_getBlockTransactionCountByHash
.
bind
(
this
),
eth_getBlockTransactionCountByHash
:
this
.
eth_getBlockTransactionCountByHash
.
bind
(
this
),
eth_getBlockTransactionCountByNumber
:
this
.
eth_getBlockTransactionCountByNumber
.
bind
(
this
)
eth_getBlockTransactionCountByNumber
:
this
.
eth_getBlockTransactionCountByNumber
.
bind
(
this
),
eth_getUncleCountByBlockHash
:
this
.
eth_getUncleCountByBlockHash
.
bind
(
this
),
eth_getUncleCountByBlockNumber
:
this
.
eth_getUncleCountByBlockNumber
.
bind
(
this
)
}
}
}
}
...
@@ -110,5 +112,12 @@ Blocks.prototype.eth_getBlockTransactionCountByNumber = function (payload, cb) {
...
@@ -110,5 +112,12 @@ Blocks.prototype.eth_getBlockTransactionCountByNumber = function (payload, cb) {
cb
(
null
,
block
.
transactions
.
length
)
cb
(
null
,
block
.
transactions
.
length
)
}
}
Blocks
.
prototype
.
eth_getUncleCountByBlockHash
=
function
(
payload
,
cb
)
{
cb
(
null
,
0
)
}
Blocks
.
prototype
.
eth_getUncleCountByBlockNumber
=
function
(
payload
,
cb
)
{
cb
(
null
,
0
)
}
module
.
exports
=
Blocks
module
.
exports
=
Blocks
\ No newline at end of file
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