Skip to content

Commit 5db1531

Browse files
author
Ludo Galabru
committed
feat: optimize memory
1 parent 168162e commit 5db1531

File tree

1 file changed

+3
-1
lines changed
  • components/hord-cli/src/hord

1 file changed

+3
-1
lines changed

components/hord-cli/src/hord/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,12 @@ pub fn parse_ordinal_operations(
145145

146146
let no_content_bytes = vec![];
147147
let inscription_content_bytes = inscription.body().take().unwrap_or(&no_content_bytes);
148+
let mut content_bytes = "0x".to_string();
149+
content_bytes.push_str(&hex::encode(&inscription_content_bytes));
148150

149151
let payload = OrdinalInscriptionRevealData {
150152
content_type: inscription.content_type().unwrap_or("unknown").to_string(),
151-
content_bytes: format!("0x{}", hex::encode(&inscription_content_bytes)),
153+
content_bytes,
152154
content_length: inscription_content_bytes.len(),
153155
inscription_id: inscription_id.to_string(),
154156
inscription_input_index: input_index,

0 commit comments

Comments
 (0)