Skip to content

Commit ddccd9e

Browse files
fix: resolve test warnings and import errors for clean ci
1 parent 7c93cb5 commit ddccd9e

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

bill_payments/tests/test_notifications.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ use bill_payments::events::{
3030
};
3131
use bill_payments::{BillPayments, BillPaymentsClient};
3232
use soroban_sdk::testutils::Address as _;
33-
use soroban_sdk::{symbol_short, testutils::Events, Address, Env, IntoVal, Symbol, TryFromVal, Vec};
33+
use soroban_sdk::{symbol_short, testutils::Events, Address, Env, Symbol, TryFromVal, Vec};
3434

3535
// ---------------------------------------------------------------------------
3636
// Helpers
3737
// ---------------------------------------------------------------------------
3838

3939
/// Register the contract, create a client, and mock all auths.
40-
fn setup(env: &Env) -> (Address, BillPaymentsClient) {
40+
fn setup(env: &Env) -> (Address, BillPaymentsClient<'_>) {
4141
let contract_id = env.register_contract(None, BillPayments);
4242
let client = BillPaymentsClient::new(env, &contract_id);
4343
(contract_id, client)
@@ -672,11 +672,10 @@ fn test_recurring_pay_emits_created_after_paid() {
672672
);
673673

674674
// Clear event count before pay
675-
let events_before = env.events().all().len();
675+
// env.events().all().len();
676676

677677
client.pay_bill(&user, &bill_id);
678678

679-
let all = env.events().all();
680679
// At least one paid event should have been emitted
681680
let paid_count = events_with_action(&env, symbol_short!("paid"));
682681
assert!(paid_count >= 1, "Expected at least 1 paid event");

insurance/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
use soroban_sdk::{contract, contractimpl, Address, Env};
55

66
#[contract]
7-
pub struct InsuranceContract;
7+
pub struct Insurance;
88

99
#[contractimpl]
10-
impl InsuranceContract {
10+
impl Insurance {
1111
pub fn pay_premium(_env: Env, caller: Address, _policy_id: u32) -> bool {
1212
caller.require_auth();
1313
// Placeholder for premium payment logic

0 commit comments

Comments
 (0)