Skip to content

Commit

Permalink
elaborate on panic msg for Checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
uint committed Apr 24, 2024
1 parent fea397c commit 82464e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/std/src/checksum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl Serialize for Checksum {
if serializer.is_human_readable() {
serializer.serialize_str(&self.to_hex())
} else {
panic!("Checksum is only intended to be used with JSON serialization for now")
panic!("Checksum is only intended to be used with JSON serialization for now. If you are hitting this panic please open an issue at https://github.com/CosmWasm/cosmwasm describing your use case.")
}
}
}
Expand All @@ -88,7 +88,7 @@ impl<'de> Deserialize<'de> for Checksum {
if deserializer.is_human_readable() {
deserializer.deserialize_str(ChecksumVisitor)
} else {
panic!("Checksum is only intended to be used with JSON serialization for now")
panic!("Checksum is only intended to be used with JSON serialization for now. If you are hitting this panic please open an issue at https://github.com/CosmWasm/cosmwasm describing your use case.")
}
}
}
Expand Down

0 comments on commit 82464e5

Please sign in to comment.