Skip to content

Commit

Permalink
add an entry in CHANGELOG.md for #1389
Browse files Browse the repository at this point in the history
Signed-off-by: Tarek <tareknaser360@gmail.com>
  • Loading branch information
tareknaser committed Nov 23, 2023
1 parent e7670d1 commit c038776
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
- Do not allow to execute calls on immutable contract messages - [#1397](https://github.com/paritytech/cargo-contract/pull/1397)
- Improve JSON Output for Upload and Remove Commands - [#1389](https://github.com/paritytech/cargo-contract/pull/1389)

## [4.0.0-alpha]

Expand Down
1 change: 1 addition & 0 deletions crates/cargo-contract/src/cmd/remove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ impl RemoveCommand {
let remove_result = code_removed.code_hash;

if self.output_json() {
// 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,
Expand Down
1 change: 1 addition & 0 deletions crates/cargo-contract/src/cmd/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ impl UploadCommand {
if let Some(code_stored) = upload_result.code_stored {
let code_hash = code_stored.code_hash;
if self.output_json() {
// Create a JSON object with the events and the code hash.
let json_object = serde_json::json!({
"events": serde_json::from_str::<serde_json::Value>(&output_events)?,
"code_hash": code_hash,
Expand Down

0 comments on commit c038776

Please sign in to comment.