-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpc: Sanitize slice data accessors for ABCI types (#1140)
* rpc: Sanitize slice data accessors for ABCI types It does not make sense to access wrapped data as references to container types &Vec<u8> and &String. Expose the data as slice references instead. * Changelog entry for #1140
- Loading branch information
Showing
4 changed files
with
30 additions
and
26 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
.changelog/unreleased/breaking-changes/1140-sanitize-abci-slice-accessors.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- `[rpc]` Change data accessor methods `abci::Data::value` and | ||
`abci::Log::value` to `Data::as_bytes` and `Log::as_str`, | ||
returning a byte array slice and a string slice respectively. | ||
([#1140](https://github.com/informalsystems/tendermint-rs/pull/1140)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters