Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/z-korp/zkube into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ClanCo committed Nov 12, 2024
2 parents 8be5e0a + 3b54f92 commit d6113bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion client/src/ui/modules/Airdrop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ const Airdrop = forwardRef<HTMLDivElement, AirdropProps>((props, ref) => {
}
}, [account, claimFreeMint, freeGames?.number]);

if (freeGames && freeGames.number === 0 && !claimStatus.showSuccess) {
if (
freeGames === null ||
(freeGames.number === 0 && !claimStatus.showSuccess)
) {
return (
<div
ref={ref}
Expand Down
4 changes: 2 additions & 2 deletions contracts/src/helpers/controller.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ impl Controller of ControllerTrait {
let shifted_full_block = BitShift::shl(full_block, shift_bits);
block_row = block_row | shifted_full_block;

// assert(Self::check_row_coherence(block_row), errors::CONTROLLER_NOT_COHERENT_LINE);
assert(Self::check_row_coherence(block_row), errors::CONTROLLER_NOT_COHERENT_LINE);

// [Return] Updated bitmap
let bitmap: u256 = blocks.into();
Expand Down Expand Up @@ -478,7 +478,7 @@ impl Controller of ControllerTrait {
let shifted_full_block = BitShift::shr(full_block, shift_bits);
block_row = block_row | shifted_full_block;

// assert(Self::check_row_coherence(block_row), errors::CONTROLLER_NOT_COHERENT_LINE);
assert(Self::check_row_coherence(block_row), errors::CONTROLLER_NOT_COHERENT_LINE);

// [Return] Updated bitmap
let bitmap: u256 = blocks.into();
Expand Down

0 comments on commit d6113bc

Please sign in to comment.