You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.0 KiB
24 lines
1.0 KiB
10 years ago
|
var chai = require('chai');
|
||
|
var web3 = require('../index');
|
||
|
var testMethod = require('./helpers/test.method.js');
|
||
|
|
||
|
var method = 'getCode';
|
||
|
|
||
|
|
||
|
var tests = [{
|
||
|
args: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855'],
|
||
|
formattedArgs: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855', web3.eth.defaultBlock],
|
||
|
result: '0x47d33b27bb249a2dbab4c0612bf9caf4747d33b27bb249a2dbab4c0612bf9cafd33b27bb249a2dbab4c0612bf9caf4c1950855',
|
||
|
formattedResult: '0x47d33b27bb249a2dbab4c0612bf9caf4747d33b27bb249a2dbab4c0612bf9cafd33b27bb249a2dbab4c0612bf9caf4c1950855',
|
||
|
call: 'eth_'+ method
|
||
|
},{
|
||
|
args: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855', 2],
|
||
|
formattedArgs: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855', '0x2'],
|
||
|
result: '0x47d33b27bb249a2dbab4c0612bf9caf4747d33b27bb249a2dbab4c0612bf9cafd33b27bb249a2dbab4c0612bf9caf4c1950855',
|
||
|
formattedResult: '0x47d33b27bb249a2dbab4c0612bf9caf4747d33b27bb249a2dbab4c0612bf9cafd33b27bb249a2dbab4c0612bf9caf4c1950855',
|
||
|
call: 'eth_'+ method
|
||
|
}];
|
||
|
|
||
|
testMethod.runTests('eth', method, tests);
|
||
|
|