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.
25 lines
562 B
25 lines
562 B
var web3 = require('../index');
|
|
var testMethod = require('./helpers/test.method.js');
|
|
|
|
var method = 'estimateGas';
|
|
|
|
var tests = [{
|
|
args: [{
|
|
to: '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b',
|
|
data: '0x23455654',
|
|
gas: 11,
|
|
gasPrice: 11
|
|
}],
|
|
formattedArgs: [{
|
|
to: '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b',
|
|
data: '0x23455654',
|
|
gas: '0xb',
|
|
gasPrice: '0xb'
|
|
}],
|
|
result: '0x31981',
|
|
formattedResult: 203137,
|
|
call: 'eth_'+ method
|
|
}];
|
|
|
|
testMethod.runTests('eth', method, tests);
|
|
|
|
|