Skip to content

Commit

Permalink
use bytes over strings
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Jan 11, 2024
1 parent b3a058a commit d43f39d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ibc-clients/ics08-wasm/types/src/client_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ mod tests {
use super::*;

#[rstest]
#[case("data", "checksum", 1)]
fn test_roundtrip(#[case] data: &str, #[case] checksum: &str, #[case] height: u64) {
#[case(b"data", b"checksum", 1)]
fn test_roundtrip(#[case] data: &[u8], #[case] checksum: &[u8], #[case] height: u64) {
let raw_client_state = RawClientState {
data: data.as_bytes().to_vec(),
checksum: checksum.as_bytes().to_vec(),
data: data.to_vec(),
checksum: checksum.to_vec(),
latest_height: Some(RawHeight {
revision_number: 0,
revision_height: height,
Expand Down

0 comments on commit d43f39d

Please sign in to comment.