Skip to content

Commit

Permalink
[wallet] Pretty print json (MystenLabs#1803)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind authored May 5, 2022
1 parent d693d4f commit 8825418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sui/src/wallet_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -828,9 +828,9 @@ impl Debug for WalletCommandResult {
WalletCommandResult::Object(object_read) => {
let object = object_read.object()?;
let layout = object_read.layout()?;
Ok(object.to_json(layout)?.to_string())
Ok(serde_json::to_string_pretty(&object.to_json(layout)?)?)
}
_ => Ok(serde_json::to_string(self)?),
_ => Ok(serde_json::to_string_pretty(self)?),
});
write!(f, "{}", s)
}
Expand Down

0 comments on commit 8825418

Please sign in to comment.