web3.js/test/eth.getBlockUncleCount.js
Fabian Vogelsteller 2c4e4adfa1
fixed net
2017-02-22 20:59:27 +01:00

26 lines
648 B
JavaScript

var testMethod = require('./helpers/test.method.js');
var method = 'getBlockUncleCount';
var tests = [{
args: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855'],
formattedArgs: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855'],
result: '0xb',
formattedResult: 11,
call: 'eth_getUncleCountByBlockHash'
},{
args: [436],
formattedArgs: ['0x1b4'],
result: '0xb',
formattedResult: 11,
call: 'eth_getUncleCountByBlockNumber'
},{
args: ['pending'],
formattedArgs: ['pending'],
result: '0xb',
formattedResult: 11,
call: 'eth_getUncleCountByBlockNumber'
}];
testMethod.runTests('eth', method, tests);