Skip to content

Commit

Permalink
updated MAX_TICKETS_ALLOWANCE value
Browse files Browse the repository at this point in the history
  • Loading branch information
psorinionut committed Nov 22, 2024
1 parent 08af875 commit d7a992f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions launchpad-guaranteed-tickets-v2/src/guaranteed_tickets_init.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
multiversx_sc::imports!();
multiversx_sc::derive_imports!();

pub const MAX_TICKETS_ALLOWANCE: usize = 128;
pub const MAX_TICKETS_ALLOWANCE: usize = 255;
pub const MAX_GUARANTEED_TICKETS_ENTRIES: usize = 10;

#[derive(TopEncode, TopDecode, NestedEncode, NestedDecode, TypeAbi, ManagedVecItem)]
Expand Down Expand Up @@ -153,9 +153,11 @@ pub trait GuaranteedTicketsInitModule:
let mut whitelist = self.users_with_guaranteed_ticket();
for user in users {
let user_ticket_status_mapper = self.user_ticket_status(&user);
if !user_ticket_status_mapper.is_empty()
|| self.ticket_range_for_address(&user).is_empty()
{
if !user_ticket_status_mapper.is_empty() {
continue;
}

if self.ticket_range_for_address(&user).is_empty() {
continue;
}

Expand Down

0 comments on commit d7a992f

Please sign in to comment.