diff --git a/util/src/text.rs b/util/src/text.rs index c4dd11c..c4a7e3f 100644 --- a/util/src/text.rs +++ b/util/src/text.rs @@ -5,6 +5,7 @@ use eyre::Result; pub fn decode0x>(text: T) -> Result> { let text = text.as_ref(); + let text = text.trim(); let text = text.strip_prefix("0x").unwrap_or(text); Ok(hex::decode(text)?) }