refactor: remove unneded functions

This commit is contained in:
0xalivecow 2024-10-20 21:17:19 +02:00
parent 24611a2357
commit c416547067
No known key found for this signature in database
3 changed files with 3 additions and 21 deletions

View file

@ -8,7 +8,6 @@ use serde_json::Value;
pub fn block2poly(val: &Value) -> Result<Vec<u8>> {
// Convert JSON data in to a u128
// TODO: Transfer decoding into own function?
eprintln!("Decoded is: {:?}", val["block"]);
let string: String = serde_json::from_value(val["block"].clone())?;
let decoded: Vec<u8> = BASE64_STANDARD.decode(string)?;