-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tendermint: Change
EventAttribute
's key
and value
fields to `Ve…
…c<u8>` for Tendermint v0.34 (#1405) * tendermint: Add `Vec<u8>` for `EventAttribute` for 0.34 (#1400) 0.34 doesn't enforce UTF8 for event attribute values. Adding a Vec<u8> for those, and keeping String for later versions. * Fix clippy warnings * Rename `value_as_bytes` to `value_bytes` * Change v0.34 event attribute key type to `Vec<u8>` * Update doc comments * !fixup 0d93c60 * Fix deserialization of untagged `EventAttribute` * Fix tests * Update changelog entry * Remove TODO * Fix no_std compat * Fix warnings on nightly * Update tendermint/src/abci/event.rs Co-authored-by: Erwan Or <[email protected]> * Update tendermint/src/abci/event.rs Co-authored-by: Erwan Or <[email protected]> * Formatting * Fix compilation errors in tests --------- Co-authored-by: Romain Ruetschi <[email protected]> Co-authored-by: Erwan Or <[email protected]>
- Loading branch information
1 parent
dac61d1
commit 979456c
Showing
7 changed files
with
409 additions
and
185 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
.changelog/unreleased/breaking-changes/1405-change-event-attribute-value.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,3 @@ | ||
- `[tendermint]` Change `EventAttribute`'s `key` and `value` fields from `String` to `Vec<u8>` for Tendermint v0.34, as enforced by the Protobuf schema for Tendermint v0.34. | ||
`tendermint::abci::EventAttribute` is now an enum, to account for version 0.34 and 0.37+, therefore the `key`, `value` and `index` fields now have to be retrieved through the `key_str()`/`key_bytes`, `value_str()`/`value_bytes()` and `index()` methods. | ||
([\#1400](https://github.com/informalsystems/tendermint-rs/issues/1400)). |
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
Oops, something went wrong.