Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CLI] Add dev inspect to CLI (#19972)
## Description This PR adds a `dev-inspect` flag to all executing-related commands. ## Test plan Existing tests. ``` sui client split-coin --coin-id 0x167f03292b0689800a149b62d6ac2f5163e1dd4995964195c521e0f3ff46183a --count 2 --dev-inspect Dev inspect completed, execution status: success ╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Transaction Effects │ ├───────────────────────────────────────────────────────────────────────────────────────────────────┤ │ Digest: EHA6riF3SUU7UCa6xi11yTs3pN8exdzhF8hoNfiTGFF6 │ │ Status: Success │ │ Executed Epoch: 1 │ │ │ │ Created Objects: │ │ ┌── │ │ │ ID: 0x3232cf6376bd59392f453b3ec15d0a98178e35c9966c2e23e797ccbc84c342e0 │ │ │ Owner: Account Address ( 0xa24c44f9e1f09e3675d39c50f6182b36e5e8a8c39b677666910c8091d681bd8c ) │ │ │ Version: 3 │ │ │ Digest: BqjHeBCvAwT3GdpqEK2JoeGTjmRSD68i8nuRQ51k8UBk │ │ └── │ │ Mutated Objects: │ │ ┌── │ │ │ ID: 0x167f03292b0689800a149b62d6ac2f5163e1dd4995964195c521e0f3ff46183a │ │ │ Owner: Account Address ( 0xa24c44f9e1f09e3675d39c50f6182b36e5e8a8c39b677666910c8091d681bd8c ) │ │ │ Version: 3 │ │ │ Digest: 3XpnrJY6nBve6GGVepHyN9j3ht7KyvunQiJdhGy1rbLH │ │ └── │ │ ┌── │ │ │ ID: 0x87b0a482a46961d091743e6669d797c836a49e9b8c6c8ba31b127d8c42ace233 │ │ │ Owner: Account Address ( 0xa24c44f9e1f09e3675d39c50f6182b36e5e8a8c39b677666910c8091d681bd8c ) │ │ │ Version: 3 │ │ │ Digest: 3PYdrT9b13m8zsG4gCcTiUEeJsEEvanmmCpZP6PE6BNc │ │ └── │ │ Gas Object: │ │ ┌── │ │ │ ID: 0x87b0a482a46961d091743e6669d797c836a49e9b8c6c8ba31b127d8c42ace233 │ │ │ Owner: Account Address ( 0xa24c44f9e1f09e3675d39c50f6182b36e5e8a8c39b677666910c8091d681bd8c ) │ │ │ Version: 3 │ │ │ Digest: 3PYdrT9b13m8zsG4gCcTiUEeJsEEvanmmCpZP6PE6BNc │ │ └── │ │ Gas Cost Summary: │ │ Storage Cost: 2964000 MIST │ │ Computation Cost: 1000000 MIST │ │ Storage Rebate: 978120 MIST │ │ Non-refundable Storage Fee: 9880 MIST │ │ │ │ Transaction Dependencies: │ │ AFFmrzPEf73hmgZkeEQbAMr2br6JKQZsiFUNoAPrDq94 │ │ AJudmLDT8jJ6uyh1gqZVF5gZ61GwuKx882BJkbkJMrXa │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────╮ │ No transaction block events │ ╰─────────────────────────────╯ Execution Result Mutable Reference Outputs Sui Argument: Input(0) Sui TypeTag: SuiTypeTag("0x2::coin::Coin<0x2::sui::SUI>") Bytes: [22, 127, 3, 41, 43, 6, 137, 128, 10, 20, 155, 98, 214, 172, 47, 81, 99, 225, 221, 73, 149, 150, 65, 149, 197, 33, 224, 243, 255, 70, 24, 58, 0, 232, 118, 72, 23, 0, 0, 0] Return values ``` --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [x] CLI: You can now pass `--dev-inspect` flag to all relevant `sui client` commands, similarly to the existing `--dry-run` flag. - [ ] Rust SDK: - [ ] REST API:
- Loading branch information