Skip to content

Commit

Permalink
testing fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
supreme2580 committed Nov 5, 2024
1 parent 2127047 commit 7d4a559
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion onchain/src/templates/component.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub mod TemplateStoreComponent {
struct TemplateCompleted {
#[key]
id: u32,
// TODO: Users rewarded, ...
// TODO: Users rewarded, ...
}

#[embeddable_as(TemplateStoreImpl)]
Expand Down
18 changes: 10 additions & 8 deletions onchain/src/tests/rainbow_quest.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,13 @@ fn rainbow_quest_test() {
);

let mut i: u8 = 0;
while i < art_peace.get_color_count() {
while i < art_peace
.get_color_count() {
art_peace.place_pixel_blocktime(i.into(), i);
warp_to_next_available_time(art_peace);

i += 1;
};
i += 1;
};

let calldata = array![].span();
art_peace.claim_main_quest(0, calldata);
Expand All @@ -87,12 +88,13 @@ fn rainbow_quest_color_missing_test() {
);

let mut i: u8 = 0;
while i < art_peace.get_color_count() - 1 {
art_peace.place_pixel_blocktime(i.into(), i);
warp_to_next_available_time(art_peace);
while i < art_peace.get_color_count()
- 1 {
art_peace.place_pixel_blocktime(i.into(), i);
warp_to_next_available_time(art_peace);

i += 1;
};
i += 1;
};

let calldata = array![].span();
art_peace.claim_main_quest(0, calldata);
Expand Down

0 comments on commit 7d4a559

Please sign in to comment.