Skip to content

Commit 5dddf62

Browse files
committed
fix invalid Soroban symbol fixtures
1 parent c15037a commit 5dddf62

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

contracts/ledgerlens-score/src/event_causality.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ mod test_event_causality {
425425
#[test]
426426
fn test_score_submission_correlation_id_is_deterministic() {
427427
let wallet = Address::generate(&Env::default());
428-
let asset_pair = Symbol::new(&Env::default(), "stellar:usdc");
428+
let asset_pair = Symbol::new(&Env::default(), "stellar_usdc");
429429
let timestamp = 1000;
430430

431431
let id1 = EventCausality::score_submission_correlation_id(&wallet, &asset_pair, timestamp);
@@ -438,7 +438,7 @@ mod test_event_causality {
438438
fn test_score_submission_correlation_id_differs_by_wallet() {
439439
let wallet1 = Address::generate(&Env::default());
440440
let wallet2 = Address::generate(&Env::default());
441-
let asset_pair = Symbol::new(&Env::default(), "stellar:usdc");
441+
let asset_pair = Symbol::new(&Env::default(), "stellar_usdc");
442442
let timestamp = 1000;
443443

444444
let id1 = EventCausality::score_submission_correlation_id(&wallet1, &asset_pair, timestamp);
@@ -450,7 +450,7 @@ mod test_event_causality {
450450
#[test]
451451
fn test_score_submission_correlation_id_differs_by_timestamp() {
452452
let wallet = Address::generate(&Env::default());
453-
let asset_pair = Symbol::new(&Env::default(), "stellar:usdc");
453+
let asset_pair = Symbol::new(&Env::default(), "stellar_usdc");
454454

455455
let id1 = EventCausality::score_submission_correlation_id(&wallet, &asset_pair, 1000);
456456
let id2 = EventCausality::score_submission_correlation_id(&wallet, &asset_pair, 2000);
@@ -484,7 +484,7 @@ mod test_event_causality {
484484
#[test]
485485
fn test_dispute_correlation_id_is_deterministic() {
486486
let challenger = Address::generate(&Env::default());
487-
let asset_pair = Symbol::new(&Env::default(), "xlm:usdc");
487+
let asset_pair = Symbol::new(&Env::default(), "xlm_usdc");
488488
let timestamp = 7000;
489489

490490
let id1 = EventCausality::dispute_correlation_id(&challenger, &asset_pair, timestamp);

contracts/ledgerlens-score/src/test_audit_replay.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ mod test_audit_replay {
2828

2929
// Submit score
3030
let wallet = Address::generate(&env);
31-
let asset_pair = Symbol::new(&env, "stellar:usdc");
31+
let asset_pair = Symbol::new(&env, "stellar_usdc");
3232

3333
// Simulate score submission
3434
client.set_watchlist(&Vec::new(&env), &wallet, &true);
@@ -56,7 +56,7 @@ mod test_audit_replay {
5656
let env = Env::default();
5757

5858
let wallet = Address::generate(&env);
59-
let asset_pair = Symbol::new(&env, "stellar:usdc");
59+
let asset_pair = Symbol::new(&env, "stellar_usdc");
6060
let timestamp = 1000u64;
6161

6262
// Compute correlation ID that would be used for this workflow
@@ -140,7 +140,7 @@ mod test_audit_replay {
140140
let env = Env::default();
141141

142142
let challenger = Address::generate(&env);
143-
let asset_pair = Symbol::new(&env, "stellar:usdc");
143+
let asset_pair = Symbol::new(&env, "stellar_usdc");
144144
let timestamp = 7000u64;
145145

146146
let correlation_id =
@@ -164,7 +164,7 @@ mod test_audit_replay {
164164
let env = Env::default();
165165

166166
let wallet = Address::generate(&env);
167-
let asset_pair = Symbol::new(&env, "stellar:usdc");
167+
let asset_pair = Symbol::new(&env, "stellar_usdc");
168168
let timestamp = 9000u64;
169169

170170
let correlation_id =
@@ -210,7 +210,7 @@ mod test_audit_replay {
210210
let env = Env::default();
211211

212212
let wallet = Address::generate(&env);
213-
let asset_pair = Symbol::new(&env, "stellar:usdc");
213+
let asset_pair = Symbol::new(&env, "stellar_usdc");
214214
let round_id = 42u64;
215215

216216
let correlation_id =
@@ -233,8 +233,8 @@ mod test_audit_replay {
233233
let env = Env::default();
234234

235235
let wallet = Address::generate(&env);
236-
let asset_pair1 = Symbol::new(&env, "stellar:usdc");
237-
let asset_pair2 = Symbol::new(&env, "stellar:btc");
236+
let asset_pair1 = Symbol::new(&env, "stellar_usdc");
237+
let asset_pair2 = Symbol::new(&env, "stellar_btc");
238238
let timestamp = 10000u64;
239239

240240
let correlation_id_1 =
@@ -255,7 +255,7 @@ mod test_audit_replay {
255255
let env = Env::default();
256256

257257
let wallet = Address::generate(&env);
258-
let asset_pair = Symbol::new(&env, "stellar:usdc");
258+
let asset_pair = Symbol::new(&env, "stellar_usdc");
259259

260260
// Test with various timestamp values
261261
let timestamps = vec![0u64, 1u64, u64::MAX / 2, u64::MAX];
@@ -311,7 +311,7 @@ mod test_audit_replay {
311311
let env = Env::default();
312312

313313
let wallet = Address::generate(&env);
314-
let asset_pair = Symbol::new(&env, "stellar:usdc");
314+
let asset_pair = Symbol::new(&env, "stellar_usdc");
315315
let timestamp = 1000u64;
316316

317317
// Compute correlation ID for a score submission

0 commit comments

Comments
 (0)