Skip to content

Commit

Permalink
chore: fix merge conflicts issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mubarak23 committed Feb 3, 2025
1 parent a2b1e67 commit c245065
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/events/chainevents.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -776,28 +776,12 @@ pub mod ChainEvents {
all_unpaid_events
}

fn _fetch_user_paid_event(self: @ContractState, caller: ContractAddress) -> (u256, u256) git {
fn _fetch_user_paid_event(self: @ContractState, caller: ContractAddress) -> (u256, u256) {
// read the paid event details.
let (event_id, amount_paid) = self.paid_events.read(caller);

// return event_id and amount paid.
(event_id, amount_paid)
}

fn _fetch_all_unpaid_events(self: @ContractState) -> Array<EventDetails> {
let mut all_unpaid_events = ArrayTrait::new();
let total_events_counts = self.event_counts.read();

let mut count: u256 = 1;

while count <= total_events_counts {
let current_event = self.event_details.read(count);
if current_event.event_type == EventType::Free {
all_unpaid_events.append(current_event);
}
count += 1;
};
all_unpaid_events
}
}
}

0 comments on commit c245065

Please sign in to comment.