From a21b24510e331426175ce0782fc581d046aa8413 Mon Sep 17 00:00:00 2001 From: Luca Joss <43531661+ljoss17@users.noreply.github.com> Date: Mon, 11 Dec 2023 22:26:42 +0100 Subject: [PATCH] Add `codespace` field to Tx sync and async `Response` (#1383) * Add codespace to tx sync and async responses * Add changelog entry --- .../unreleased/breaking-changes/1382-add-codespace-error.md | 2 ++ rpc/src/endpoint/broadcast/tx_async.rs | 3 +++ rpc/src/endpoint/broadcast/tx_sync.rs | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 .changelog/unreleased/breaking-changes/1382-add-codespace-error.md diff --git a/.changelog/unreleased/breaking-changes/1382-add-codespace-error.md b/.changelog/unreleased/breaking-changes/1382-add-codespace-error.md new file mode 100644 index 000000000..db2f576aa --- /dev/null +++ b/.changelog/unreleased/breaking-changes/1382-add-codespace-error.md @@ -0,0 +1,2 @@ +- Add the `codespace` field to the Tx sync and async broadcast `Response` + ([\#1382](https://github.com/informalsystems/tendermint-rs/issues/1382)) \ No newline at end of file diff --git a/rpc/src/endpoint/broadcast/tx_async.rs b/rpc/src/endpoint/broadcast/tx_async.rs index 3880d3e24..9ea161f8e 100644 --- a/rpc/src/endpoint/broadcast/tx_async.rs +++ b/rpc/src/endpoint/broadcast/tx_async.rs @@ -38,6 +38,9 @@ impl crate::SimpleRequest for Request { /// Response from either an async or sync transaction broadcast request. #[derive(Clone, Debug, Deserialize, Serialize)] pub struct Response { + /// Code space + pub codespace: String, + /// Code pub code: Code, diff --git a/rpc/src/endpoint/broadcast/tx_sync.rs b/rpc/src/endpoint/broadcast/tx_sync.rs index 8bd0a6295..350148653 100644 --- a/rpc/src/endpoint/broadcast/tx_sync.rs +++ b/rpc/src/endpoint/broadcast/tx_sync.rs @@ -38,6 +38,9 @@ impl crate::SimpleRequest for Request { /// Response from either an async or sync transaction broadcast request. #[derive(Clone, Debug, Deserialize, Serialize)] pub struct Response { + /// Code space + pub codespace: String, + /// Code pub code: Code,