From 61a01588778116b19d3a81fa4d795641e8b8de12 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sat, 24 Jan 2015 16:46:46 -0800 Subject: Vanity addresses in AZ. Fixes to ethereum.js eth.flush() --- lib/abi.js | 2 +- lib/web3.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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' }, -- cgit v1.2.3