There was an error while loading. Please reload this page.
1 parent 53d6cf1 commit 8028ed7Copy full SHA for 8028ed7
1 file changed
contracts/predictify-hybrid/src/oracle_health.rs
@@ -245,13 +245,13 @@ impl OracleHealth {
245
246
/// Generate storage key for oracle health.
247
fn health_key(oracle_address: &Address) -> Symbol {
248
- let key_str = alloc::format!("oracle_health_{}", oracle_address.to_string());
+ let key_str = alloc::format!("oracle_health_{:?}", oracle_address);
249
Symbol::new(&Env::default(), &key_str)
250
}
251
252
/// Generate storage key for health history.
253
fn history_key(oracle_address: &Address) -> Symbol {
254
- let key_str = alloc::format!("oracle_health_history_{}", oracle_address.to_string());
+ let key_str = alloc::format!("oracle_health_history_{:?}", oracle_address);
255
256
257
0 commit comments