Skip to content

Commit

Permalink
fix(cargo-contract): rename removed_code_hash in remove command
Browse files Browse the repository at this point in the history
This commit renames the field removed_code_hash to just code_hash in the remove command output to keep it consistent with between json output and human readable output

Signed-off-by: Tarek <tareknaser360@gmail.com>
  • Loading branch information
tareknaser committed Nov 23, 2023
1 parent c038776 commit b156b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cargo-contract/src/cmd/remove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl RemoveCommand {
// Create a JSON object with the events and the removed code hash.
let json_object = serde_json::json!({
"events": serde_json::from_str::<serde_json::Value>(&output_events)?,
"removed_code_hash": remove_result,
"code_hash": remove_result,
});
let json_object = serde_json::to_string_pretty(&json_object)?;
println!("{}", json_object);
Expand Down

0 comments on commit b156b08

Please sign in to comment.