feat: add util to build SPKG with a modified start block

This commit is contained in:
Thales Lima
2025-03-10 19:21:04 -03:00
committed by Tamara
parent 0bc39aee55
commit 4425fe1680
4 changed files with 139 additions and 4 deletions

View File

@@ -1,6 +1,5 @@
use std::collections::HashMap;
use figment::providers::Format;
use hex::FromHex;
use serde::{Deserialize, Serialize};
@@ -18,9 +17,9 @@ impl From<String> for HexBytes {
}
}
impl Into<String> for HexBytes {
fn into(self) -> String {
format!("0x{}", hex::encode(self.0))
impl From<HexBytes> for String {
fn from(val: HexBytes) -> Self {
format!("0x{}", hex::encode(val.0))
}
}