File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const cliConfig = {
8
8
json: false
9
9
};
10
10
11
- const parse = (data, child = false ) => {
11
+ const parse = (data) => {
12
12
if (cliConfig.json) {
13
13
drawJSON(data);
14
14
return;
@@ -24,13 +24,13 @@ const parse = (data, child = false) => {
24
24
}
25
25
} else if (typeof data[key] === 'object') {
26
26
if (data[key] && data[key].constructor?.name === 'BigNumber') {
27
- console.log(`${child ? ' ' : ''}${ chalk.yellow.bold(key)} : ${data[key]}`);
27
+ console.log(`${chalk.yellow.bold(key)} : ${data[key]}`);
28
28
} else {
29
29
console.log(`${chalk.yellow.bold.underline(key)}`)
30
- parse (data[key], true );
30
+ drawTable (data[key]);
31
31
}
32
32
} else {
33
- console.log(`${child ? ' ' : ''}${ chalk.yellow.bold(key)} : ${data[key]}`);
33
+ console.log(`${chalk.yellow.bold(key)} : ${data[key]}`);
34
34
}
35
35
}
36
36
}
You can’t perform that action at this time.
0 commit comments