Skip to content

Commit

Permalink
Show hexdump instead of decimal arrays in parse-bytecode (FuelLabs#1326)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dentosal authored Apr 21, 2022
1 parent 9106654 commit d17a848
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion forc/src/cli/commands/parse_bytecode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ pub(crate) fn exec(command: Command) -> Result<()> {
TableCell::new_with_alignment(word_ix, 1, Alignment::Right),
TableCell::new(word_ix * 4),
TableCell::new(format!("{:?}", instruction.1)),
TableCell::new(format!("{:?}", instruction.0)),
TableCell::new(format!(
"{:02x} {:02x} {:02x} {:02x}",
instruction.0[0], instruction.0[1], instruction.0[2], instruction.0[3],
)),
TableCell::new(notes),
]));
}
Expand Down

0 comments on commit d17a848

Please sign in to comment.