Skip to content

Commit

Permalink
Scarb fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
b-j-roberts committed Apr 1, 2024
1 parent a5fc471 commit f69b4ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion onchain/src/lib.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ mod ArtPeace {

#[constructor]
fn constructor(
ref self: ContractState, canvas_width: u128, canvas_height: u128, time_between_pixels: u64, color_count: u8,
ref self: ContractState,
canvas_width: u128,
canvas_height: u128,
time_between_pixels: u64,
color_count: u8,
) {
self.canvas_width.write(canvas_width);
self.canvas_height.write(canvas_height);
Expand Down
4 changes: 3 additions & 1 deletion onchain/src/tests/art_peace.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const COLOR_COUNT: u8 = 12;

fn deploy_contract() -> ContractAddress {
let contract = snf::declare("ArtPeace");
let calldata: Array<felt252> = array![WIDTH.into(), HEIGHT.into(), TIME_BETWEEN_PIXELS.into(), COLOR_COUNT.into()];
let calldata: Array<felt252> = array![
WIDTH.into(), HEIGHT.into(), TIME_BETWEEN_PIXELS.into(), COLOR_COUNT.into()
];
let contract_addr = contract.deploy(@calldata).unwrap();
snf::start_warp(CheatTarget::One(contract_addr), TIME_BETWEEN_PIXELS);
contract_addr
Expand Down

0 comments on commit f69b4ac

Please sign in to comment.