Skip to content

Commit

Permalink
Merge pull request #65 from CosmWasm/59-add-warning
Browse files Browse the repository at this point in the history
Add warning about `KeyDeserialize` bug
  • Loading branch information
chipshort authored Nov 14, 2023
2 parents c0c3804 + 72bc7c6 commit 7faedd8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ fn parse_length(value: &[u8]) -> StdResult<usize> {
.into())
}

/// Warning: This implementation is buggy in many cases except the most basic ones.
/// In these cases, it will panic when you try to `range` through your keys.
/// See [#33] for more information. This will be fixed in version 2.0.
///
/// [#33]: https://github.com/CosmWasm/cw-storage-plus/issues/33
impl<T: KeyDeserialize, U: KeyDeserialize> KeyDeserialize for (T, U) {
type Output = (T::Output, U::Output);

Expand Down

0 comments on commit 7faedd8

Please sign in to comment.