Skip to content

Commit 8028ed7

Browse files
author
Codex
committed
fix: make contract build target portable
Use debug formatting for Soroban addresses and retain the maintained contract test workflow.
1 parent 53d6cf1 commit 8028ed7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

contracts/predictify-hybrid/src/oracle_health.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,13 @@ impl OracleHealth {
245245

246246
/// Generate storage key for oracle health.
247247
fn health_key(oracle_address: &Address) -> Symbol {
248-
let key_str = alloc::format!("oracle_health_{}", oracle_address.to_string());
248+
let key_str = alloc::format!("oracle_health_{:?}", oracle_address);
249249
Symbol::new(&Env::default(), &key_str)
250250
}
251251

252252
/// Generate storage key for health history.
253253
fn history_key(oracle_address: &Address) -> Symbol {
254-
let key_str = alloc::format!("oracle_health_history_{}", oracle_address.to_string());
254+
let key_str = alloc::format!("oracle_health_history_{:?}", oracle_address);
255255
Symbol::new(&Env::default(), &key_str)
256256
}
257257

0 commit comments

Comments
 (0)