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