mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-23 19:48:13 +00:00
rename getData to getCode
This commit is contained in:
parent
cb7c209ff1
commit
b032429a1d
4
dist/ethereum.js
vendored
4
dist/ethereum.js
vendored
@ -1733,7 +1733,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; }]},
|
||||
@ -1768,7 +1768,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' },
|
||||
|
2
dist/ethereum.js.map
vendored
2
dist/ethereum.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/ethereum.min.js
vendored
2
dist/ethereum.min.js
vendored
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…
x
Reference in New Issue
Block a user