forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sui cli] allow disassembling module without source
`sui move disassemble` needs a source package, which is a bit silly since a dissasembler is often used to look at bytecode without knowledge of the source. This PR changes the command to dissasemble w/source context if pointed at a `.mv` file inside a package, and disassemble directly with no source context otherwise. Example usage: ``` sui move disassemble frenemies/build/frenemies/bytecode_modules/frenemies.mv cp frenemies.mv tmp/ sui move disassemble frenemies.mv ```
- Loading branch information
1 parent
ac4c7e6
commit b59c6ed
Showing
3 changed files
with
51 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters