Fix for logs showing a string as an array

Some strings were being logged as
```
[w,r,i,t,i,n,g, ,f,i,l,e, ,,[,2,m,,[,1,m,.,e,m,b,a,r,k,/,s,t,a,t,s,.,r,e,p,o,r,t,,[,2,2,m,,[,2,2,m]
```
The fix was applied to the `normalizeInput` method which simply returns if the input was a `typeof` string.
This commit is contained in:
emizzle 2018-10-11 16:34:17 +11:00 committed by Pascal Precht
parent 0baf0526b1
commit aa4bc0fe4d
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 1 additions and 0 deletions

View File

@ -326,6 +326,7 @@ function soliditySha3(arg) {
}
function normalizeInput(input) {
if(typeof input === 'string') return input;
let args = Object.values(input);
if (args.length === 0) {
return "";