Skip to content

Commit

Permalink
Merge pull request #87 from ilyar/improve-conctrac-run-out
Browse files Browse the repository at this point in the history
for simple parse out
  • Loading branch information
Artem-Zhdanov authored Feb 11, 2022
2 parents 5cc8523 + 7264af2 commit 0d0f95d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/controllers/contract/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async function inputTuple(terminal: Terminal, param: AbiParam): Promise<any> {
while (true) {
const value = await inputLine(terminal, `${param.name} (${param.type})`)
try {
return JSON.parse(value)
return JSON.parse(value)
} catch (err: any) {
terminal.log(err.toString())
}
Expand Down Expand Up @@ -192,5 +192,6 @@ export async function logRunResult(
out_messages: outMessages.filter(x => x?.body_type !== MessageBodyType.Output),
};
terminal.log();
terminal.log(`Execution has finished with result: ${JSON.stringify(details, undefined, " ")}`);
terminal.log('Execution has finished with result:');
terminal.log(JSON.stringify(details, undefined, " "));
}

0 comments on commit 0d0f95d

Please sign in to comment.