aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-01-25 08:46:46 +0800
committerGav Wood <i@gavwood.com>2015-01-25 08:46:46 +0800
commit61a01588778116b19d3a81fa4d795641e8b8de12 (patch)
tree48f616562dfb272e5b7d7a4534c3c9de715e9ab3 /lib
parentc01f0ae825184c2dac818ed52c704337106f855a (diff)
downloadgo-tangerine-61a01588778116b19d3a81fa4d795641e8b8de12.tar.gz
go-tangerine-61a01588778116b19d3a81fa4d795641e8b8de12.tar.zst
go-tangerine-61a01588778116b19d3a81fa4d795641e8b8de12.zip
Vanity addresses in AZ.
Fixes to ethereum.js eth.flush()
Diffstat (limited to 'lib')
-rw-r--r--lib/abi.js2
-rw-r--r--lib/web3.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/abi.js b/lib/abi.js
index 21580347d..1dc662152 100644
--- a/lib/abi.js
+++ b/lib/abi.js
@@ -128,7 +128,7 @@ var formatInputReal = function (value) {
var dynamicTypeBytes = function (type, value) {
// 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 "";
};
diff --git a/lib/web3.js b/lib/web3.js
index 96002a232..7191adfe8 100644
--- a/lib/web3.js
+++ b/lib/web3.js
@@ -82,6 +82,7 @@ var ethMethods = function () {
{ name: 'transaction', call: transactionCall },
{ name: 'uncle', call: uncleCall },
{ name: 'compilers', call: 'eth_compilers' },
+ { name: 'flush', call: 'eth_flush' },
{ name: 'lll', call: 'eth_lll' },
{ name: 'solidity', call: 'eth_solidity' },
{ name: 'serpent', call: 'eth_serpent' },