mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-23 19:48:13 +00:00
34 lines
928 B
JavaScript
34 lines
928 B
JavaScript
var testMethod = require('./helpers/test.method.js');
|
|
|
|
var method = 'getBlockTransactionCount';
|
|
|
|
|
|
var tests = [{
|
|
args: ['0x4e65fda2159562a496f9f3522f8922f89122a3088497a122a3088497a'],
|
|
formattedArgs: ['0x4e65fda2159562a496f9f3522f8922f89122a3088497a122a3088497a'],
|
|
result: '0xb',
|
|
formattedResult: 11,
|
|
call: 'eth_getBlockTransactionCountByHash'
|
|
},{
|
|
args: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855'],
|
|
formattedArgs: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855'],
|
|
result: '0xb',
|
|
formattedResult: 11,
|
|
call: 'eth_getBlockTransactionCountByHash'
|
|
},{
|
|
args: [436],
|
|
formattedArgs: ['0x1b4'],
|
|
result: '0xb',
|
|
formattedResult: 11,
|
|
call: 'eth_getBlockTransactionCountByNumber'
|
|
},{
|
|
args: ['pending'],
|
|
formattedArgs: ['pending'],
|
|
result: '0xb',
|
|
formattedResult: 11,
|
|
call: 'eth_getBlockTransactionCountByNumber'
|
|
}];
|
|
|
|
testMethod.runTests('eth', method, tests);
|
|
|