Skip to content

Commit 4d496b0

Browse files
committed
fmt
1 parent b7bc834 commit 4d496b0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/predifi.cairo

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,6 @@ pub mod Predifi {
299299
self.assert_valid_felt252(option1);
300300
self.assert_valid_felt252(option2);
301301

302-
303-
304302
// Collect pool creation fee (1 STRK)
305303
IPredifi::collect_pool_creation_fee(ref self, creator_address);
306304

@@ -491,7 +489,7 @@ pub mod Predifi {
491489
let option2: felt252 = pool.option2;
492490

493491
// Validation checks using SecurityTrait
494-
self.assert_valid_pool_option(option, option1, option2);
492+
self.assert_valid_pool_option(option, option1, option2);
495493
self.assert_amount_within_limits(amount, pool.minBetAmount, pool.maxBetAmount);
496494

497495
// Transfer betting amount from the user to the contract
@@ -565,10 +563,10 @@ pub mod Predifi {
565563
//Input Validatioin
566564
self.assert_greater_than_zero(amount);
567565
self.assert_greater_than_zero(pool_id);
568-
566+
569567
let pool = self.pools.read(pool_id);
570568
self.assert_pool_exists(@pool);
571-
569+
572570
// Validation checks using SecurityTrait
573571
self.assert_pool_not_suspended(@pool);
574572
self.assert_min_stake_amount(amount);

0 commit comments

Comments
 (0)