mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-25 22:21:16 +00:00
12 lines
293 B
Rust
12 lines
293 B
Rust
use nssa_core::program::ProgramId;
|
|
|
|
pub fn program_id_hex(program_id: ProgramId) -> String {
|
|
let mut output = String::with_capacity(64);
|
|
for word in program_id {
|
|
for byte in word.to_le_bytes() {
|
|
output.push_str(&format!("{byte:02x}"));
|
|
}
|
|
}
|
|
output
|
|
}
|