From 113a3809ab5e92cd0d60a02a5752b260a9ab3331 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sat, 24 Jan 2015 18:23:39 -0800 Subject: Fix string outputs. Auto collapse for < 2 returns. --- lib/abi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/abi.js') diff --git a/lib/abi.js b/lib/abi.js index 1dc662152..177a146b0 100644 --- a/lib/abi.js +++ b/lib/abi.js @@ -251,7 +251,7 @@ var formatOutputAddress = function (value) { }; var dynamicBytesLength = function (type) { - if (arrayType(type) || prefixedType('string')(type)) + if (arrayType(type) || type == 'string') // only string itself that is dynamic; stringX is static length. return ETH_PADDING * 2; return 0; }; -- cgit v1.2.3