Skip to content

Commit

Permalink
scarb fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
moodysalem committed Mar 7, 2024
1 parent 01bd51b commit 941e70e
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/airdrop_test.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -807,16 +807,18 @@ fn test_claim_128_double_claim() {

assert_eq!(airdrop.claim_128(claims.span().slice(0, 128), array![s2, rr].span()), 128);
let mut i: u64 = 0;
while let Option::Some(claimed) =
pop_log::<
Airdrop::Claimed
>(airdrop.contract_address) {
assert_eq!(
claimed.claim,
Claim { id: i, amount: 3, claimee: contract_address_const::<0xcdee>() }
);
i += 1;
loop {
match pop_log::<Airdrop::Claimed>(airdrop.contract_address) {
Option::Some(claimed) => {
assert_eq!(
claimed.claim,
Claim { id: i, amount: 3, claimee: contract_address_const::<0xcdee>() }
);
i += 1;
},
Option::None => { break (); }
};
};

assert_eq!(airdrop.claim_128(claims.span().slice(0, 128), array![s2, rr].span()), 0);
assert_eq!(pop_log::<Airdrop::Claimed>(airdrop.contract_address).is_none(), true);
Expand Down

0 comments on commit 941e70e

Please sign in to comment.