mirror of https://github.com/status-im/web3.js.git
Merge branch 'getCode' of https://github.com/jorisbontje/ethereum.js into getCode
Conflicts: dist/ethereum.min.js
This commit is contained in:
commit
5cdea25fad
|
@ -1731,7 +1731,7 @@ var methods = [
|
|||
{ name: 'getStorage', call: 'eth_getStorage', addDefaultblock: 2},
|
||||
{ name: 'getStorageAt', call: 'eth_getStorageAt', addDefaultblock: 3,
|
||||
inputFormatter: utils.toHex},
|
||||
{ name: 'getData', call: 'eth_getData', addDefaultblock: 2},
|
||||
{ name: 'getCode', call: 'eth_getCode', addDefaultblock: 2},
|
||||
{ name: 'getBlock', call: blockCall,
|
||||
outputFormatter: formatters.outputBlockFormatter,
|
||||
inputFormatter: [utils.toHex, function(param){ return (!param) ? false : true; }]},
|
||||
|
@ -1766,7 +1766,7 @@ var methods = [
|
|||
{ name: 'stateAt', call: 'eth_stateAt', newMethod: 'eth.getStorageAt' },
|
||||
{ name: 'storageAt', call: 'eth_storageAt', newMethod: 'eth.getStorage' },
|
||||
{ name: 'countAt', call: 'eth_countAt', newMethod: 'eth.getTransactionCount' },
|
||||
{ name: 'codeAt', call: 'eth_codeAt', newMethod: 'eth.getData' },
|
||||
{ name: 'codeAt', call: 'eth_codeAt', newMethod: 'eth.getCode' },
|
||||
{ name: 'transact', call: 'eth_transact', newMethod: 'eth.sendTransaction' },
|
||||
{ name: 'block', call: blockCall, newMethod: 'eth.getBlock' },
|
||||
{ name: 'transaction', call: transactionFromBlockCall, newMethod: 'eth.getTransaction' },
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -78,7 +78,7 @@ var methods = [
|
|||
{ name: 'getStorage', call: 'eth_getStorage', addDefaultblock: 2},
|
||||
{ name: 'getStorageAt', call: 'eth_getStorageAt', addDefaultblock: 3,
|
||||
inputFormatter: utils.toHex},
|
||||
{ name: 'getData', call: 'eth_getData', addDefaultblock: 2},
|
||||
{ name: 'getCode', call: 'eth_getCode', addDefaultblock: 2},
|
||||
{ name: 'getBlock', call: blockCall,
|
||||
outputFormatter: formatters.outputBlockFormatter,
|
||||
inputFormatter: [utils.toHex, function(param){ return (!param) ? false : true; }]},
|
||||
|
@ -113,7 +113,7 @@ var methods = [
|
|||
{ name: 'stateAt', call: 'eth_stateAt', newMethod: 'eth.getStorageAt' },
|
||||
{ name: 'storageAt', call: 'eth_storageAt', newMethod: 'eth.getStorage' },
|
||||
{ name: 'countAt', call: 'eth_countAt', newMethod: 'eth.getTransactionCount' },
|
||||
{ name: 'codeAt', call: 'eth_codeAt', newMethod: 'eth.getData' },
|
||||
{ name: 'codeAt', call: 'eth_codeAt', newMethod: 'eth.getCode' },
|
||||
{ name: 'transact', call: 'eth_transact', newMethod: 'eth.sendTransaction' },
|
||||
{ name: 'block', call: blockCall, newMethod: 'eth.getBlock' },
|
||||
{ name: 'transaction', call: transactionFromBlockCall, newMethod: 'eth.getTransaction' },
|
||||
|
|
|
@ -8,7 +8,7 @@ describe('web3', function() {
|
|||
u.methodExists(web3.eth, 'getStorageAt');
|
||||
u.methodExists(web3.eth, 'getStorage');
|
||||
u.methodExists(web3.eth, 'getTransactionCount');
|
||||
u.methodExists(web3.eth, 'getData');
|
||||
u.methodExists(web3.eth, 'getCode');
|
||||
u.methodExists(web3.eth, 'sendTransaction');
|
||||
u.methodExists(web3.eth, 'call');
|
||||
u.methodExists(web3.eth, 'getBlock');
|
||||
|
|
Loading…
Reference in New Issue