Skip to content

Commit 38b8d3a

Browse files
committed
fix invalid Soroban symbol fixtures
1 parent fea81c4 commit 38b8d3a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

contracts/ledgerlens-score/src/test_invariants.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
88
use soroban_sdk::{symbol_short, testutils::Address as _, Address, Env};
99

10-
use crate::{invariants, storage, types::RiskScore, LedgerLensScoreContract};
10+
use crate::{
11+
invariants, storage,
12+
types::{DataKey, RiskScore},
13+
LedgerLensScoreContract,
14+
};
1115

1216
fn make_env() -> Env {
1317
let env = Env::default();
@@ -115,7 +119,7 @@ fn inv7_fails_when_index_entry_has_no_live_score() {
115119
// that erased the Score key but left the index entry intact.
116120
storage::set_score(&env, &wallet, &pair, &sample_score(42));
117121
storage::track_score_entry(&env, &wallet, &pair);
118-
storage::clear_score(&env, &wallet, &pair);
122+
env.storage().persistent().remove(&DataKey::Score(wallet.clone(), pair.clone()));
119123
// Index still contains the entry; invariant must fire.
120124
invariants::invariant_check(&env);
121125
});

0 commit comments

Comments
 (0)