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,