From 3938ce89c45672093826120a28c66e90388c1244 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 30 May 2019 18:24:30 -0400 Subject: [PATCH] add eth_getUncleCountByBlockHash and eth_getUncleCountByBlockNumber --- remix-simulator/src/methods/blocks.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/remix-simulator/src/methods/blocks.js b/remix-simulator/src/methods/blocks.js index d710c969fc..c9705cb3d5 100644 --- a/remix-simulator/src/methods/blocks.js +++ b/remix-simulator/src/methods/blocks.js @@ -16,7 +16,9 @@ Blocks.prototype.methods = function () { eth_blockNumber: this.eth_blockNumber.bind(this), eth_getBlockByHash: this.eth_getBlockByHash.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) { 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