Skip to content

Commit

Permalink
Optimize sui CLI response format (MystenLabs#15572)
Browse files Browse the repository at this point in the history
## Description 

Cleanup sui CLI response formatted table 

![20240105162734](https://github.com/MystenLabs/sui/assets/123343203/22160bae-66d0-4739-b35e-708887cb2677)


## Test Plan 

How did you test the new or updated feature?

---
If your changes are not user-facing and not a breaking change, you can
skip the following section. Otherwise, please indicate what changed, and
then add to the Release Notes section as highlighted during the release
process.

### Type of Change (Check all that apply)

- [ ] protocol change
- [x] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes

Co-authored-by: bityoume <[email protected]>
  • Loading branch information
bityoume and bityoume authored Jan 5, 2024
1 parent 42962ea commit f71ebfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/sui-json-rpc-types/src/balance_changes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub struct BalanceChange {

impl Display for BalanceChange {
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
writeln!(
write!(
f,
" ┌──\n │ Owner: {} \n │ CoinType: {} \n │ Amount: {}\n └──",
self.owner, self.coin_type, self.amount
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-json-rpc-types/src/object_changes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ impl Display for ObjectChange {
} => {
write!(
f,
" ┌──\n │ PackageID: {} \n │ Version: {} \n │ Digest: {}\n | Modules: {}\n └──",
" ┌──\n │ PackageID: {} \n │ Version: {} \n │ Digest: {}\n Modules: {}\n └──",
package_id,
u64::from(*version),
digest,
Expand Down

0 comments on commit f71ebfb

Please sign in to comment.