mirror of https://github.com/status-im/web3.js.git
parent
c01f0ae825
commit
61a0158877
|
@ -129,7 +129,7 @@ var formatInputReal = function (value) {
|
||||||
|
|
||||||
var dynamicTypeBytes = function (type, value) {
|
var dynamicTypeBytes = function (type, value) {
|
||||||
// TODO: decide what to do with array of strings
|
// TODO: decide what to do with array of strings
|
||||||
if (arrayType(type) || prefixedType('string')(type))
|
if (arrayType(type) || type == 'string') // only string itself that is dynamic; stringX is static length.
|
||||||
return formatInputInt(value.length);
|
return formatInputInt(value.length);
|
||||||
return "";
|
return "";
|
||||||
};
|
};
|
||||||
|
@ -889,6 +889,7 @@ var ethMethods = function () {
|
||||||
{ name: 'transaction', call: transactionCall },
|
{ name: 'transaction', call: transactionCall },
|
||||||
{ name: 'uncle', call: uncleCall },
|
{ name: 'uncle', call: uncleCall },
|
||||||
{ name: 'compilers', call: 'eth_compilers' },
|
{ name: 'compilers', call: 'eth_compilers' },
|
||||||
|
{ name: 'flush', call: 'eth_flush' },
|
||||||
{ name: 'lll', call: 'eth_lll' },
|
{ name: 'lll', call: 'eth_lll' },
|
||||||
{ name: 'solidity', call: 'eth_solidity' },
|
{ name: 'solidity', call: 'eth_solidity' },
|
||||||
{ name: 'serpent', call: 'eth_serpent' },
|
{ name: 'serpent', call: 'eth_serpent' },
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -128,7 +128,7 @@ var formatInputReal = function (value) {
|
||||||
|
|
||||||
var dynamicTypeBytes = function (type, value) {
|
var dynamicTypeBytes = function (type, value) {
|
||||||
// TODO: decide what to do with array of strings
|
// TODO: decide what to do with array of strings
|
||||||
if (arrayType(type) || prefixedType('string')(type))
|
if (arrayType(type) || type == 'string') // only string itself that is dynamic; stringX is static length.
|
||||||
return formatInputInt(value.length);
|
return formatInputInt(value.length);
|
||||||
return "";
|
return "";
|
||||||
};
|
};
|
||||||
|
|
|
@ -82,6 +82,7 @@ var ethMethods = function () {
|
||||||
{ name: 'transaction', call: transactionCall },
|
{ name: 'transaction', call: transactionCall },
|
||||||
{ name: 'uncle', call: uncleCall },
|
{ name: 'uncle', call: uncleCall },
|
||||||
{ name: 'compilers', call: 'eth_compilers' },
|
{ name: 'compilers', call: 'eth_compilers' },
|
||||||
|
{ name: 'flush', call: 'eth_flush' },
|
||||||
{ name: 'lll', call: 'eth_lll' },
|
{ name: 'lll', call: 'eth_lll' },
|
||||||
{ name: 'solidity', call: 'eth_solidity' },
|
{ name: 'solidity', call: 'eth_solidity' },
|
||||||
{ name: 'serpent', call: 'eth_serpent' },
|
{ name: 'serpent', call: 'eth_serpent' },
|
||||||
|
|
Loading…
Reference in New Issue