Skip to content

Commit

Permalink
Add codespace field to Tx sync and async Response (#1383)
Browse files Browse the repository at this point in the history
* Add codespace to tx sync and async responses

* Add changelog entry
  • Loading branch information
ljoss17 authored Dec 11, 2023
1 parent 194d81e commit a21b245
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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))
3 changes: 3 additions & 0 deletions rpc/src/endpoint/broadcast/tx_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ impl<S: Dialect> crate::SimpleRequest<S> 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,

Expand Down
3 changes: 3 additions & 0 deletions rpc/src/endpoint/broadcast/tx_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ impl<S: Dialect> crate::SimpleRequest<S> 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,

Expand Down

0 comments on commit a21b245

Please sign in to comment.