changed getCode to getData

This commit is contained in:
Fabian Vogelsteller 2015-02-25 11:01:58 +01:00
parent 1fa7fa6958
commit 181f1093e6
5 changed files with 7 additions and 7 deletions

4
dist/ethereum.js vendored
View File

@ -594,7 +594,7 @@ var methods = [
{ name: 'getState', call: 'eth_stateAt' }, { name: 'getState', call: 'eth_stateAt' },
{ name: 'getStorage', call: 'eth_storageAt' }, { name: 'getStorage', call: 'eth_storageAt' },
{ name: 'getTransactionCount', call: 'eth_countAt'}, { name: 'getTransactionCount', call: 'eth_countAt'},
{ name: 'getCode', call: 'eth_codeAt' }, { name: 'getData', call: 'eth_codeAt' },
{ name: 'sendTransaction', call: 'eth_transact', inputFormatter: formatters.inputTransactionFormatter }, { name: 'sendTransaction', call: 'eth_transact', inputFormatter: formatters.inputTransactionFormatter },
{ name: 'call', call: 'eth_call' }, { name: 'call', call: 'eth_call' },
{ name: 'getBlock', call: blockCall }, { name: 'getBlock', call: blockCall },
@ -613,7 +613,7 @@ var methods = [
{ name: 'stateAt', call: 'eth_stateAt', newMethod: 'getState' }, { name: 'stateAt', call: 'eth_stateAt', newMethod: 'getState' },
{ name: 'storageAt', call: 'eth_storageAt', newMethod: 'getStorage' }, { name: 'storageAt', call: 'eth_storageAt', newMethod: 'getStorage' },
{ name: 'countAt', call: 'eth_countAt', newMethod: 'getTransactionCount' }, { name: 'countAt', call: 'eth_countAt', newMethod: 'getTransactionCount' },
{ name: 'codeAt', call: 'eth_codeAt', newMethod: 'getCode' }, { name: 'codeAt', call: 'eth_codeAt', newMethod: 'getData' },
{ name: 'transact', call: 'eth_transact', newMethod: 'sendTransaction' }, { name: 'transact', call: 'eth_transact', newMethod: 'sendTransaction' },
{ name: 'block', call: blockCall, newMethod: 'getBlock' }, { name: 'block', call: blockCall, newMethod: 'getBlock' },
{ name: 'transaction', call: transactionCall, newMethod: 'getTransaction' }, { name: 'transaction', call: transactionCall, newMethod: 'getTransaction' },

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -49,7 +49,7 @@ var methods = [
{ name: 'getState', call: 'eth_stateAt' }, { name: 'getState', call: 'eth_stateAt' },
{ name: 'getStorage', call: 'eth_storageAt' }, { name: 'getStorage', call: 'eth_storageAt' },
{ name: 'getTransactionCount', call: 'eth_countAt'}, { name: 'getTransactionCount', call: 'eth_countAt'},
{ name: 'getCode', call: 'eth_codeAt' }, { name: 'getData', call: 'eth_codeAt' },
{ name: 'sendTransaction', call: 'eth_transact', inputFormatter: formatters.inputTransactionFormatter }, { name: 'sendTransaction', call: 'eth_transact', inputFormatter: formatters.inputTransactionFormatter },
{ name: 'call', call: 'eth_call' }, { name: 'call', call: 'eth_call' },
{ name: 'getBlock', call: blockCall }, { name: 'getBlock', call: blockCall },
@ -68,7 +68,7 @@ var methods = [
{ name: 'stateAt', call: 'eth_stateAt', newMethod: 'getState' }, { name: 'stateAt', call: 'eth_stateAt', newMethod: 'getState' },
{ name: 'storageAt', call: 'eth_storageAt', newMethod: 'getStorage' }, { name: 'storageAt', call: 'eth_storageAt', newMethod: 'getStorage' },
{ name: 'countAt', call: 'eth_countAt', newMethod: 'getTransactionCount' }, { name: 'countAt', call: 'eth_countAt', newMethod: 'getTransactionCount' },
{ name: 'codeAt', call: 'eth_codeAt', newMethod: 'getCode' }, { name: 'codeAt', call: 'eth_codeAt', newMethod: 'getData' },
{ name: 'transact', call: 'eth_transact', newMethod: 'sendTransaction' }, { name: 'transact', call: 'eth_transact', newMethod: 'sendTransaction' },
{ name: 'block', call: blockCall, newMethod: 'getBlock' }, { name: 'block', call: blockCall, newMethod: 'getBlock' },
{ name: 'transaction', call: transactionCall, newMethod: 'getTransaction' }, { name: 'transaction', call: transactionCall, newMethod: 'getTransaction' },

View File

@ -8,7 +8,7 @@ describe('web3', function() {
u.methodExists(web3.eth, 'getState'); u.methodExists(web3.eth, 'getState');
u.methodExists(web3.eth, 'getStorage'); u.methodExists(web3.eth, 'getStorage');
u.methodExists(web3.eth, 'getTransactionCount'); u.methodExists(web3.eth, 'getTransactionCount');
u.methodExists(web3.eth, 'getCode'); u.methodExists(web3.eth, 'getData');
u.methodExists(web3.eth, 'sendTransaction'); u.methodExists(web3.eth, 'sendTransaction');
u.methodExists(web3.eth, 'call'); u.methodExists(web3.eth, 'call');
u.methodExists(web3.eth, 'getBlock'); u.methodExists(web3.eth, 'getBlock');