Fix string outputs.

Auto collapse for < 2 returns.
This commit is contained in:
Gav Wood
2015-01-24 18:23:39 -08:00
parent fb34c6c7b9
commit 113a3809ab
5 changed files with 26 additions and 8 deletions

View File

@ -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;
};