aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.js
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-02-04 03:12:56 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-02-04 03:12:56 +0800
commitddc17196da36c1ad660b70f33f8b4eaaccdbdda8 (patch)
tree09a3246661cbf776f9250bc051569e011ea44d74 /lib/utils.js
parentfdcc1af4e22c65d4b920b6143918d54c66ab0d08 (diff)
downloadgo-tangerine-ddc17196da36c1ad660b70f33f8b4eaaccdbdda8.tar
go-tangerine-ddc17196da36c1ad660b70f33f8b4eaaccdbdda8.tar.gz
go-tangerine-ddc17196da36c1ad660b70f33f8b4eaaccdbdda8.tar.bz2
go-tangerine-ddc17196da36c1ad660b70f33f8b4eaaccdbdda8.tar.lz
go-tangerine-ddc17196da36c1ad660b70f33f8b4eaaccdbdda8.tar.xz
go-tangerine-ddc17196da36c1ad660b70f33f8b4eaaccdbdda8.tar.zst
go-tangerine-ddc17196da36c1ad660b70f33f8b4eaaccdbdda8.zip
tests && fixes for utils methods
Diffstat (limited to 'lib/utils.js')
-rw-r--r--lib/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils.js b/lib/utils.js
index e1265803c..7cc1917e1 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -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