Skip to content

Commit

Permalink
cli: add witnesses to debug dump command
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jul 29, 2024
1 parent ca8cf14 commit 1412e7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,10 @@ impl Exec for RgbArgs {
// TODO: Add sigs debugging

// State
fs::write(
format!("{root_dir}/state/witnesses.yaml"),
serde_yaml::to_string(stock.as_state_provider().debug_witnesses())?,
)?;
for (id, state) in stock.as_state_provider().debug_contracts() {
fs::write(
format!("{root_dir}/state/{id:-}.yaml"),
Expand Down

0 comments on commit 1412e7e

Please sign in to comment.