tests && fixes for utils methods

This commit is contained in:
Marek Kotewicz
2015-02-03 20:12:56 +01:00
parent fdcc1af4e2
commit ddc17196da
6 changed files with 101 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ var extractDisplayName = function (name) {
var extractTypeName = function (name) {
/// TODO: make it invulnerable
var length = name.indexOf('(');
return length !== -1 ? name.substr(length + 1, name.length - 1 - (length + 1)) : "";
return length !== -1 ? name.substr(length + 1, name.length - 1 - (length + 1)).replace(' ', '') : "";
};
/// Filters all function from input abi