Skip to content

Commit

Permalink
Add receipts field to ReceiptsResponse (#864)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-rufi committed Dec 6, 2021
1 parent 349a88e commit b473277
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions bee-api/bee-rest-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Security -->

## 0.1.6 - 2021-12-06

### Fixed

- Add `receipts` field to `ReceiptsResponse`;

## 0.1.5 - 2021-12-06

### Added
Expand Down
2 changes: 1 addition & 1 deletion bee-api/bee-rest-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bee-rest-api"
version = "0.1.5"
version = "0.1.6"
authors = [ "IOTA Stiftung" ]
edition = "2021"
description = "The default REST API implementation for the IOTA Bee node software."
Expand Down
4 changes: 3 additions & 1 deletion bee-api/bee-rest-api/src/types/responses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ impl BodyInner for OutputsAddressResponse {}
/// * GET /api/v1/receipts/{milestone_index}, returns all stored receipts for the given milestone index.
/// * GET /api/v1/receipts, returns all stored receipts, independent of a milestone index.
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct ReceiptsResponse(pub Vec<ReceiptDto>);
pub struct ReceiptsResponse {
pub receipts: Vec<ReceiptDto>,
}

impl BodyInner for ReceiptsResponse {}

Expand Down

0 comments on commit b473277

Please sign in to comment.